2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-06-28 20:29:48 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, installShellFiles
|
|
|
|
, pandoc
|
|
|
|
, boost
|
|
|
|
, bzip2
|
|
|
|
, expat
|
|
|
|
, libosmium
|
2021-01-08 21:54:25 +01:00
|
|
|
, lz4
|
2020-06-28 20:29:48 +02:00
|
|
|
, protozero
|
|
|
|
, zlib
|
|
|
|
}:
|
2018-10-28 18:09:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "osmium-tool";
|
2021-02-03 20:48:22 +01:00
|
|
|
version = "1.13.1";
|
2018-10-28 18:09:25 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "osmium-tool";
|
|
|
|
rev = "v${version}";
|
2021-02-03 20:48:22 +01:00
|
|
|
sha256 = "sha256-IeFbcgwayBl3xxv3onCJr0f1oeveyyNlLxXQlzOoVq0=";
|
2018-10-28 18:09:25 +01:00
|
|
|
};
|
|
|
|
|
2020-06-28 20:29:48 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
installShellFiles
|
|
|
|
pandoc
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
bzip2
|
|
|
|
expat
|
|
|
|
libosmium
|
2021-01-08 21:54:25 +01:00
|
|
|
lz4
|
2020-06-28 20:29:48 +02:00
|
|
|
protozero
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --zsh ../zsh_completion/_osmium
|
|
|
|
'';
|
2018-10-28 18:09:25 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-28 18:09:25 +01:00
|
|
|
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";
|
|
|
|
homepage = "https://osmcode.org/osmium-tool/";
|
2021-02-03 21:58:49 +01:00
|
|
|
changelog = "https://github.com/osmcode/osmium-tool/blob/v${version}/CHANGELOG.md";
|
2021-01-08 21:54:25 +01:00
|
|
|
license = with licenses; [ gpl3Plus mit bsd3 ];
|
2018-10-28 18:09:25 +01:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
|
|
|
};
|
|
|
|
}
|