commit 458eae6c0321707a4cc2153e6fb48c0ef3e295a2 parent a80f271a60a9096d8ebd8e82d4d139ddcf0112dd Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sat, 11 Apr 2020 21:16:27 +0300 Add opentopomap Diffstat:
A | pkgs/data/maps/opentopomap/default.nix | | | 33 | +++++++++++++++++++++++++++++++++ |
M | pkgs/default.nix | | | 1 | + |
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/pkgs/data/maps/opentopomap/default.nix b/pkgs/data/maps/opentopomap/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + pname = "opentopomap"; + version = "2020-04-10"; + + src = fetchurl { + url = "http://garmin.opentopomap.org/data/russia-european-part/russia-european-part_garmin.zip"; + sha256 = "130h349ja358qmdszq8lhfi0flskhrjcf65z1f9v4vmhf67wj719"; + }; + + 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 = "OpenTopoMap Garmin Edition"; + homepage = "http://garmin.opentopomap.org/"; + license = licenses.cc-by-nc-sa-40; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -66,6 +66,7 @@ lib.makeScope newScope ( openorienteering-mapper = libsForQt5.callPackage ./applications/openorienteering-mapper { inherit sources; }; + opentopomap = callPackage ./data/maps/opentopomap {}; osm2mp = perlPackages.callPackage ./tools/geo/osm2mp { inherit sources; inherit (perlPackages) GeoOpenstreetmapParser MatchSimple MathPolygon MathPolygonTree TreeR;