nur-packages

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

commit 554e6e354d9955b0430e4016b584a173571b9cd8
parent 19f48027ee2b41524436d4ce0ab45f4494545335
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 24 Feb 2020 11:58:45 +0300

Add maptourist

Diffstat:
Mnix/sources.json | 8++++++++
Apkgs/data/maps/maptourist/default.nix | 24++++++++++++++++++++++++
Mpkgs/default.nix | 1+
3 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -298,6 +298,14 @@ "url": "https://github.com/ushakov/mapsoft/archive/904e2da8a55e8426a56de7e41b06cb92e1656005.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "maptourist": { + "region": "szfo", + "sha256": "0nxmgngsid2srgvp7ikzi7fmfck8j0jw9yyflj87747rwlzpjq0w", + "type": "file", + "url": "https://maptourist.org/osm-garmin/archive/OSM-MapTourist-szfo-RU_2020-02-24.zip", + "url_template": "https://maptourist.org/osm-garmin/archive/OSM-MapTourist-<region>-RU_<version>.zip", + "version": "2020-02-24" + }, "mbtileserver": { "branch": "master", "builtin": false, diff --git a/pkgs/data/maps/maptourist/default.nix b/pkgs/data/maps/maptourist/default.nix @@ -0,0 +1,24 @@ +{ stdenv, sources, unzip }: + +stdenv.mkDerivation { + pname = "maptourist"; + version = sources.maptourist.version; + src = sources.maptourist; + + preferLocalBuild = true; + + dontUnpack = true; + + installPhase = '' + install -dm755 $out/share/gpxsee/maps + ${unzip}/bin/unzip -j $src -d $out/share/gpxsee/maps + ''; + + meta = with stdenv.lib; { + inherit (src) description homepage; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -52,6 +52,7 @@ lib.makeScope newScope (self: with self; { libshell = callPackage ./development/libraries/libshell { }; macmillan = callPackage ./data/dicts/macmillan { }; mapsoft = callPackage ./applications/mapsoft { }; + maptourist = callPackage ./data/maps/maptourist { }; mbtileserver = callPackage ./servers/mbtileserver { }; mercantile = python3Packages.callPackage ./development/python-modules/mercantile { inherit sources;