nur-packages

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

commit b7c08a9233006954596df11c50ae15aa8c93ceb3
parent 3f718198d374be87627a130754b6917fead6f830
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri,  8 Oct 2021 23:32:02 +0300

Add vectiler

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/vectiler/default.nix | 30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -316,6 +316,7 @@ lib.makeScope newScope ( smrender = callPackage ./osm/smrender { }; taginfo-tools = callPackage ./osm/taginfo-tools { }; tilemaker = callPackage ./osm/tilemaker { }; + vectiler = callPackage ./osm/vectiler { }; ### RADIO diff --git a/pkgs/osm/vectiler/default.nix b/pkgs/osm/vectiler/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, cmake, curl }: + +stdenv.mkDerivation rec { + pname = "vectiler"; + version = "2021-06-30"; + + src = fetchFromGitHub { + owner = "karimnaaji"; + repo = pname; + rev = "76e71c852b020fb5b877c0b03dfeb263a632df71"; + sha256 = "sha256-O21XTkKAKRVqc7iItT8MroxM6PtTDNCoEdXvkpnxWus="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ curl ]; + + installPhase = '' + install -Dm755 vectiler.out $out/bin/vectiler + ''; + + meta = with lib; { + description = "A vector tile, terrain and city 3d model builder and exporter"; + homepage = "http://karim.naaji.fr/vectiler.html"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}