nur-packages

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

commit b2b52b081bc62d4d19f421d67741015133f77559
parent 36332d462ed743a57339d01df89668cede974bf9
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Wed, 17 Aug 2022 11:59:53 +0300

Add planetiler

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/planetiler/default.nix | 35+++++++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -387,6 +387,7 @@ lib.makeScope newScope ( osmosis = callPackage ./osm/osmosis { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; phyghtmap = callPackage ./osm/phyghtmap { }; + planetiler = callPackage ./osm/planetiler { }; polytiles = callPackage ./osm/polytiles { }; pyrobuf = callPackage ./osm/pyrobuf { }; pyrosm = callPackage ./osm/pyrosm { }; diff --git a/pkgs/osm/planetiler/default.nix b/pkgs/osm/planetiler/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchfromgh, unzip, jre, makeWrapper }: + +stdenv.mkDerivation rec { + pname = "planetiler"; + version = "0.5.0"; + + src = fetchfromgh { + owner = "onthegomap"; + repo = "planetiler"; + version = "v${version}"; + name = "planetiler.jar"; + hash = "sha256-XwjY81F1E3MISxwqvSG7OMv2Y1fdKgLSaS01YfFttws="; + }; + + dontUnpack = true; + + buildInputs = [ jre makeWrapper ]; + + installPhase = '' + install -dm755 $out/bin + install -Dm644 $src $out/share/java/planetiler.jar + + makeWrapper ${jre}/bin/java $out/bin/planetiler \ + --add-flags "-jar $out/share/java/planetiler.jar" + ''; + + meta = with lib; { + description = "Flexible tool to build planet-scale vector tilesets from OpenStreetMap data"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + platforms = jre.meta.platforms; + skip.ci = true; + }; +}