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
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
installShellFiles,
|
|
pandoc,
|
|
boost,
|
|
bzip2,
|
|
expat,
|
|
libosmium,
|
|
lz4,
|
|
nlohmann_json,
|
|
protozero,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "osmium-tool";
|
|
version = "1.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "osmcode";
|
|
repo = "osmium-tool";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-6CT5vhzZtGZDr3mCgtpI8AGXn+Iiasf9SxUV6qN9+I8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
installShellFiles
|
|
pandoc
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
bzip2
|
|
expat
|
|
libosmium
|
|
lz4
|
|
nlohmann_json
|
|
protozero
|
|
zlib
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postInstall = ''
|
|
installShellCompletion --zsh ../zsh_completion/_osmium
|
|
'';
|
|
|
|
meta = {
|
|
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";
|
|
homepage = "https://osmcode.org/osmium-tool/";
|
|
changelog = "https://github.com/osmcode/osmium-tool/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
gpl3Plus
|
|
mit
|
|
bsd3
|
|
];
|
|
maintainers = with lib.maintainers; [ das-g ];
|
|
teams = [ lib.teams.geospatial ];
|
|
mainProgram = "osmium";
|
|
};
|
|
})
|