Files
nixpkgs/pkgs/by-name/li/libosmium/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
protozero,
expat,
zlib,
bzip2,
boost,
lz4,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libosmium";
version = "2.22.0";
src = fetchFromGitHub {
owner = "osmcode";
repo = "libosmium";
tag = "v${finalAttrs.version}";
hash = "sha256-b4jdPh6lJ/ALPVblDt16Nabx9ZL8MW8/roI+NqTZshU=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
protozero
zlib
bzip2
expat
boost
lz4
];
cmakeFlags = [
# Fix the build with CMake 4.
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
(lib.cmakeBool "INSTALL_GDALCPP" true)
];
doCheck = true;
meta = {
description = "Fast and flexible C++ library for working with OpenStreetMap data";
homepage = "https://osmcode.org/libosmium/";
license = lib.licenses.boost;
changelog = [
"https://github.com/osmcode/libosmium/releases/tag/v${finalAttrs.version}"
"https://github.com/osmcode/libosmium/blob/v${finalAttrs.version}/CHANGELOG.md"
];
maintainers = with lib.maintainers; [ das-g ];
teams = [ lib.teams.geospatial ];
};
})