2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, installShellFiles
|
|
|
|
, pandoc
|
|
|
|
, boost
|
|
|
|
, bzip2
|
|
|
|
, expat
|
|
|
|
, libosmium
|
|
|
|
, protozero
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osmium-tool";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.12.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "osmium-tool";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "13142hj8gfgj6w51a62hjzfmzic90xgrnnlnb70hpdqjy86bxv7j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
installShellFiles
|
|
|
|
pandoc
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
bzip2
|
|
|
|
expat
|
|
|
|
libosmium
|
|
|
|
protozero
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --zsh ../zsh_completion/_osmium
|
|
|
|
'';
|
2020-04-24 23:36:52 +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/";
|
|
|
|
license = with licenses; [ gpl3 mit bsd3 ];
|
|
|
|
maintainers = with maintainers; [ das-g ];
|
|
|
|
};
|
|
|
|
}
|