nixpkgs/pkgs/applications/misc/osmium-tool/default.nix

55 lines
955 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, cmake
, installShellFiles
, pandoc
, boost
, bzip2
, expat
, libosmium
2021-01-08 20:54:25 +00:00
, lz4
, protozero
, zlib
}:
2018-10-28 17:09:25 +00:00
stdenv.mkDerivation rec {
pname = "osmium-tool";
2021-01-08 20:54:25 +00:00
version = "1.13.0";
2018-10-28 17:09:25 +00:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "osmium-tool";
rev = "v${version}";
2021-01-08 20:54:25 +00:00
sha256 = "0rn67g4xf01i7pkxrdh87jdj2rzkw5pfkx5wkg9245z5yxjxhqj2";
2018-10-28 17:09:25 +00:00
};
nativeBuildInputs = [
cmake
installShellFiles
pandoc
];
buildInputs = [
boost
bzip2
expat
libosmium
2021-01-08 20:54:25 +00:00
lz4
protozero
zlib
];
doCheck = true;
postInstall = ''
installShellCompletion --zsh ../zsh_completion/_osmium
'';
2018-10-28 17:09:25 +00:00
meta = with stdenv.lib; {
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";
homepage = "https://osmcode.org/osmium-tool/";
2021-01-08 20:54:25 +00:00
license = with licenses; [ gpl3Plus mit bsd3 ];
2018-10-28 17:09:25 +00:00
maintainers = with maintainers; [ das-g ];
};
}