nur-packages

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

commit e01b71f3a287237f614e27b85cd1f417d415e846
parent 04b956b7d63b27eaf195c2ad72506be3abea3705
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 20 Apr 2020 08:41:00 +0300

Add mtk-suomi

Diffstat:
Mnix/sources.json | 10++++++++++
Apkgs/data/maps/mtk-suomi/default.nix | 23+++++++++++++++++++++++
Mpkgs/default.nix | 1+
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -385,6 +385,16 @@ "url": "https://github.com/morse-talk/morse-talk/archive/71e09ace0aa554d28cada5ee658e43758305b8fa.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "mtk-suomi": { + "builtin": false, + "description": "Maanmittauslaitoksen peruskartan tasoiset ja näköiset ilmaiset maastokartat", + "homepage": "https://kartat.hylly.org/", + "sha256": "1nf10nljnnahi7adj2pn1l6kl3ak69prc1jjqmrrnajm53g8c1il", + "type": "file", + "url": "https://kartat-dl.hylly.org/2020-04-18/mtk_suomi.img", + "url_template": "https://kartat-dl.hylly.org/<version>/mtk_suomi.img", + "version": "2020-04-18" + }, "openmtbmap_openvelomap_linux": { "branch": "master", "builtin": false, diff --git a/pkgs/data/maps/mtk-suomi/default.nix b/pkgs/data/maps/mtk-suomi/default.nix @@ -0,0 +1,23 @@ +{ stdenv, sources }: + +stdenv.mkDerivation rec { + pname = "mtk-suomi"; + version = sources.mtk-suomi.version; + src = sources.mtk-suomi; + + preferLocalBuild = true; + + dontUnpack = true; + + installPhase = '' + install -Dm644 $src $out/share/gpxsee/maps/mtk_suomi.img + ''; + + 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 @@ -36,6 +36,7 @@ lib.makeScope newScope ( gpxsee-maps = callPackage ./data/maps/gpxsee-maps {}; hiblovgpsmap = callPackage ./data/maps/hiblovgpsmap {}; maptourist = callPackage ./data/maps/maptourist {}; + mtk-suomi = callPackage ./data/maps/mtk-suomi {}; opentopomap = callPackage ./data/maps/opentopomap {}; qmapshack-onlinemaps = callPackage ./data/maps/qmapshack-onlinemaps {}; qmapshack-routinodb = callPackage ./data/maps/qmapshack-routinodb {};