osmctools: 0.8.5plus1.4.0 -> 0.9
This commit is contained in:
parent
1979ac619f
commit
f03b833284
@ -1,46 +1,27 @@
|
|||||||
{ stdenv, fetchurl, zlib } :
|
{ stdenv, fetchFromGitLab, autoreconfHook, zlib }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
|
|
||||||
convert_src = fetchurl {
|
|
||||||
url = http://m.m.i24.cc/osmconvert.c;
|
|
||||||
sha256 = "1mvmb171c1jqxrm80jc7qicwk4kgg7yq694n7ci65g6i284r984x";
|
|
||||||
# version = 0.8.5
|
|
||||||
};
|
|
||||||
|
|
||||||
filter_src = fetchurl {
|
|
||||||
url = http://m.m.i24.cc/osmfilter.c;
|
|
||||||
sha256 = "0vm3bls9jb2cb5b11dn82sxnc22qzkf4ghmnkivycigrwa74i6xl";
|
|
||||||
# version = 1.4.0
|
|
||||||
};
|
|
||||||
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "osmctools";
|
pname = "osmctools";
|
||||||
version = "0.8.5plus1.4.0";
|
version = "0.9";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "osm-c-tools";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1m8d3r1q1v05pkr8k9czrmb4xjszw6hvgsf3kn9pf0v14gpn4r8f";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
|
|
||||||
phases = [ "buildPhase" "installPhase" ];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
cc ${convert_src} -lz -O3 -o osmconvert
|
|
||||||
cc ${filter_src} -O3 -o osmfilter
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
mv osmconvert $out/bin
|
|
||||||
mv osmfilter $out/bin
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Command line tools for transforming Open Street Map files";
|
description = "Command line tools for transforming Open Street Map files";
|
||||||
homepage = [
|
homepage = [
|
||||||
https://wiki.openstreetmap.org/wiki/Osmconvert
|
https://wiki.openstreetmap.org/wiki/osmconvert
|
||||||
https://wiki.openstreetmap.org/wiki/Osmfilter
|
https://wiki.openstreetmap.org/wiki/osmfilter
|
||||||
|
https://wiki.openstreetmap.org/wiki/osmupdate
|
||||||
];
|
];
|
||||||
|
maintainers = with maintainers; [ sikmir ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user