nur-packages

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

commit 5ced7bc4c935cbd95b2992fb8d3a0ff358a73aec
parent feb22bf184cdc2f2373fdb76f4c3e1ba9ae6115b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 28 Aug 2021 22:11:25 +0300

Up

Diffstat:
Mpkgs/data/maps/maptourist/default.nix | 4++--
Mpkgs/data/misc/osm-extracts/default.nix | 4++--
Mpkgs/osm/tilemaker/default.nix | 10++++++++++
3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/pkgs/data/maps/maptourist/default.nix b/pkgs/data/maps/maptourist/default.nix @@ -2,11 +2,11 @@ stdenvNoCC.mkDerivation rec { pname = "maptourist"; - version = "2021-08-16"; + version = "2021-08-25"; src = fetchurl { url = "https://maptourist.org/osm-garmin/archive/OSM-MapTourist-szfo-RU_${version}.zip"; - hash = "sha256-x8noLpHmJ5E5TuDDtkuaTf1jNsC6FzxZrVSzPxT1LBs="; + hash = "sha256-EUn77EkTjAwuzFk613E9+T0Be1q7/rVEe2gT4K58tZQ="; }; sourceRoot = "."; diff --git a/pkgs/data/misc/osm-extracts/default.nix b/pkgs/data/misc/osm-extracts/default.nix @@ -17,11 +17,11 @@ in { admin-boundaries = stdenv.mkDerivation rec { pname = "osm-admin-boundaries"; - version = "210816"; + version = "210825"; src = fetchurl { url = "https://download.geofabrik.de/russia/northwestern-fed-district-${version}.osm.pbf"; - hash = "sha256-quHCVQomVPvqskC5YEClJU5Zno9oLiYx6omW1SMmRWk="; + hash = "sha256-XI1vwJfe6Ira0Lr42z/1CFPyhElE0qXF7OOiVfwdaTI="; }; dontUnpack = true; diff --git a/pkgs/osm/tilemaker/default.nix b/pkgs/osm/tilemaker/default.nix @@ -12,10 +12,20 @@ stdenv.mkDerivation rec { hash = "sha256-RfWf5e7yyfoJO3S8u6DwpB5xYl4PGnlhk+E1l+ewNN8="; }; + postPatch = '' + substituteInPlace src/tilemaker.cpp \ + --replace "config.json" "$out/share/tilemaker/config-openmaptiles.json" \ + --replace "process.lua" "$out/share/tilemaker/process-openmaptiles.lua" + ''; + nativeBuildInputs = [ cmake ]; buildInputs = [ boost lua protobuf shapelib sqlite zlib ]; + postInstall = '' + install -Dm644 $src/resources/* -t $out/share/tilemaker + ''; + meta = with lib; { description = "Make OpenStreetMap vector tiles without the stack"; inherit (src.meta) homepage;