2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, installShellFiles
|
|
|
|
, pandoc
|
|
|
|
, boost
|
|
|
|
, bzip2
|
|
|
|
, expat
|
|
|
|
, libosmium
|
2021-01-09 10:05:03 +00:00
|
|
|
, lz4
|
2020-07-18 16:06:22 +00:00
|
|
|
, protozero
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "osmium-tool";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "osmium-tool";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-xedunFzar44o+b/45isXWacDcC81wWkxgGwnpLPH/n0=";
|
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
|
2021-01-09 10:05:03 +00:00
|
|
|
lz4
|
2020-07-18 16:06:22 +00:00
|
|
|
protozero
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --zsh ../zsh_completion/_osmium
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";
|
|
|
|
homepage = "https://osmcode.org/osmium-tool/";
|
2021-02-05 17:12:51 +00:00
|
|
|
changelog = "https://github.com/osmcode/osmium-tool/blob/v${version}/CHANGELOG.md";
|
2021-01-09 10:05:03 +00:00
|
|
|
license = with licenses; [ gpl3Plus mit bsd3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
|
|
|
};
|
|
|
|
}
|