nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit f0c810228e86a5e04c28711275376951aadd1b92
parent 5a300fd37a2abc432c3bd2d21ddb116f43dd6870
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri, 22 Oct 2021 13:44:22 +0300

Add osmosis

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/osmosis/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -310,6 +310,7 @@ lib.makeScope newScope ( osm-area-tools = callPackage ./osm/osm-area-tools { }; osm-python-tools = callPackage ./osm/osm-python-tools { }; osmcoastline = callPackage ./osm/osmcoastline { }; + osmosis = callPackage ./osm/osmosis { }; overpass-api = callPackage ./osm/overpass-api { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; phyghtmap = callPackage ./osm/phyghtmap { }; diff --git a/pkgs/osm/osmosis/default.nix b/pkgs/osm/osmosis/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchfromgh, jre }: + +stdenv.mkDerivation rec { + pname = "osmosis"; + version = "0.48.3"; + + src = fetchfromgh { + owner = "openstreetmap"; + repo = pname; + name = "osmosis-${version}.tgz"; + hash = "sha256-skxgFXjqTLDKiDAr5naP0GAr3obCVKDguQUTWB26Z/8="; + inherit version; + }; + + sourceRoot = "."; + + installPhase = '' + mkdir -p $out + cp -r . $out + rm $out/bin/*.bat + substituteInPlace $out/bin/osmosis \ + --replace "JAVACMD=java" "JAVACMD=${jre}/bin/java" + ''; + + meta = with lib; { + description = "Command line Java application for processing OSM data"; + homepage = "http://wiki.openstreetmap.org/wiki/Osmosis"; + license = licenses.gpl2; + maintainers = [ maintainers.sikmir ]; + platforms = jre.meta.platforms; + }; +}