commit ed20a605015ab2b4e42621817dfc4c5f52c2ff93
parent 2c25355fafd3394f9d14ac2db37fc3b838122d03
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Sat, 20 Feb 2021 02:41:11 +0300
Add uralla maps
Diffstat:
3 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/pkgs/data/maps/uralla/base.nix b/pkgs/data/maps/uralla/base.nix
@@ -0,0 +1,25 @@
+{ lib, stdenvNoCC, fetchurl, pname, version, sha256 }:
+
+stdenvNoCC.mkDerivation {
+ inherit pname version;
+
+ src = fetchurl {
+ url = "https://www.uralla.ru/garmin/topo/topo.${pname}.img";
+ inherit sha256;
+ };
+
+ dontUnpack = true;
+
+ installPhase = "install -Dm644 $src $out/${pname}.img";
+
+ preferLocalBuild = true;
+
+ meta = with lib; {
+ description = "Туристические карты для навигаторов Garmin";
+ homepage = "https://www.uralla.ru/ural-garmin-topo-img-map-16505.html";
+ license = licenses.free;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/data/maps/uralla/default.nix b/pkgs/data/maps/uralla/default.nix
@@ -0,0 +1,15 @@
+{ callPackage }:
+
+{
+ ural-fed-district = callPackage ./base.nix {
+ pname = "ural-fed-district";
+ version = "2021-02-16";
+ sha256 = "13qlrm4j73ngzm3nly10lq48smm9z7b0620zqvxcxpvnj0zx1bl1";
+ };
+
+ northwestern-fed-district = callPackage ./base.nix {
+ pname = "northwestern-fed-district";
+ version = "2021-02-16";
+ sha256 = "1pal12kfkg22iild0jym27fch8g189krkkwpsphlglf1r8544aqf";
+ };
+}
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -77,6 +77,7 @@ lib.makeScope newScope (
slazav-hr = callPackage ./data/maps/slazav/hr.nix { };
slazav-podm = callPackage ./data/maps/slazav/podm.nix { };
slazav-podm-bin = callPackage ./data/maps/slazav/podm-bin.nix { };
+ uralla = callPackage ./data/maps/uralla { };
usa-osm-topo-routable = callPackage ./data/maps/usa-osm-topo-routable { };
gadm = callPackage ./data/misc/gadm { };