osmium-tools: run tests, install man pages and zsh completions

gstqt5
Daniël de Kok 2020-06-28 20:29:48 +02:00
parent 619488c664
commit c54a705ab9
1 changed files with 32 additions and 3 deletions

View File

@ -1,4 +1,15 @@
{ stdenv, fetchFromGitHub, cmake, libosmium, protozero, boost, bzip2, zlib, expat }:
{ stdenv
, fetchFromGitHub
, cmake
, installShellFiles
, pandoc
, boost
, bzip2
, expat
, libosmium
, protozero
, zlib
}:
stdenv.mkDerivation rec {
pname = "osmium-tool";
@ -11,8 +22,26 @@ stdenv.mkDerivation rec {
sha256 = "13142hj8gfgj6w51a62hjzfmzic90xgrnnlnb70hpdqjy86bxv7j";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libosmium protozero boost bzip2 zlib expat ];
nativeBuildInputs = [
cmake
installShellFiles
pandoc
];
buildInputs = [
boost
bzip2
expat
libosmium
protozero
zlib
];
doCheck = true;
postInstall = ''
installShellCompletion --zsh ../zsh_completion/_osmium
'';
meta = with stdenv.lib; {
description = "Multipurpose command line tool for working with OpenStreetMap data based on the Osmium library";