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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, cmake
, installShellFiles
, pandoc
, boost
, bzip2
, expat
, libosmium
2021-01-08 23:54:25 +03:00
, lz4
, protozero
, zlib
}:
2018-10-28 20:09:25 +03:00
stdenv.mkDerivation rec {
pname = "osmium-tool";
2023-01-23 21:01:01 +03:00
version = "1.15.0";
2018-10-28 20:09:25 +03:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "osmium-tool";
rev = "v${version}";
2023-01-23 21:01:01 +03:00
sha256 = "sha256-xV/1LFby0L/o648XEQQ9gS9/eHssWhMIG7R1E8bfIDU=";
2018-10-28 20:09:25 +03:00
};
nativeBuildInputs = [
cmake
installShellFiles
pandoc
];
buildInputs = [
boost
bzip2
expat
libosmium
2021-01-08 23:54:25 +03:00
lz4
protozero
zlib
];
doCheck = true;
postInstall = ''
installShellCompletion --zsh ../zsh_completion/_osmium
'';
2018-10-28 20:09:25 +03:00
meta = with lib; {
2018-10-28 20:09:25 +03: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 23:58:49 +03:00
changelog = "https://github.com/osmcode/osmium-tool/blob/v${version}/CHANGELOG.md";
2021-01-08 23:54:25 +03:00
license = with licenses; [ gpl3Plus mit bsd3 ];
2018-10-28 20:09:25 +03:00
maintainers = with maintainers; [ das-g ];
};
}