nur-packages

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

commit 0a9e8cae055d920c8c807a9ac89aaa0c3dfa4734
parent e74b1d8a3a320c5664cf8247f3e3e397512f9d0c
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Tue, 28 Apr 2020 05:16:36 +0300

Add freizeitkarte-osm

Diffstat:
Apkgs/data/maps/freizeitkarte-osm/default.nix | 33+++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/maps/freizeitkarte-osm/default.nix b/pkgs/data/maps/freizeitkarte-osm/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, unzip, country ? "FIN", lang ? "en" }: + +stdenv.mkDerivation rec { + pname = "freizeitkarte-osm"; + version = "2020-04-06"; + + src = fetchurl { + url = "http://download.freizeitkarte-osm.de/garmin/latest/${country}_${lang}_gmapsupp.img.zip"; + sha256 = "0wnfxb02n7niaa4ma6w6gxkfqfg5w7achkq1l5cyjpnhgjzlsw94"; + }; + + nativeBuildInputs = [ unzip ]; + + unpackPhase = "unzip $src"; + + dontConfigure = true; + dontBuild = true; + + preferLocalBuild = true; + + installPhase = '' + install -Dm644 *.img -t "$out/share/qmapshack/Maps" + ''; + + meta = with stdenv.lib; { + description = "Freizeitkarte map with DEM (Digital Elevation Model) and hillshading"; + homepage = "https://freizeitkarte-osm.de/"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -35,6 +35,7 @@ lib.makeScope newScope ( gpsmap64 = callPackage ./data/firmwares/gpsmap64 {}; + freizeitkarte-osm = callPackage ./data/maps/freizeitkarte-osm {}; gpxsee-dem = callPackage ./data/maps/gpxsee-dem {}; gpxsee-maps = callPackage ./data/maps/gpxsee-maps {}; gpxsee-poi = callPackage ./data/maps/gpxsee-poi {};