nur-packages

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

commit 3f97992d591999c7dce4d7c285d951583eb3f30b
parent eb1ac6579bf961665d6a3475471728453919b6c3
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri,  3 Apr 2020 10:31:00 +0300

Add qmapshack-dem

Diffstat:
Apkgs/data/maps/qmapshack-dem/default.nix | 50++++++++++++++++++++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/maps/qmapshack-dem/default.nix b/pkgs/data/maps/qmapshack-dem/default.nix @@ -0,0 +1,50 @@ +{ stdenv, fetchurl, unzip, gdal }: + +stdenv.mkDerivation rec { + pname = "qmapshack-dem"; + version = "2014-05-25"; + + srcs = [ + (fetchurl { + url = "http://viewfinderpanoramas.org/dem1/O35.zip"; + sha256 = "0wc5l7vcm33qkmbmjaij2mkxv59922150qjabjhhxqaf7xxv3q65"; + }) + (fetchurl { + url = "http://viewfinderpanoramas.org/dem1/P35.zip"; + sha256 = "093zz7yx8kcykip83k8gzby9l6lx03nsvzjw21axjlbd48fl26ac"; + }) + (fetchurl { + url = "http://viewfinderpanoramas.org/dem1/P36.zip"; + sha256 = "15icmvc2md6g9a89ln4ckkclynfhcf21yabfcr7azp7ivy23f46i"; + }) + (fetchurl { + url = "http://viewfinderpanoramas.org/dem1/Q35.zip"; + sha256 = "0lvm43v03i80v6b9phwbd3mdhqi6y2iklgp4cc0qx56pg7z6wdaa"; + }) + (fetchurl { + url = "http://viewfinderpanoramas.org/dem1/Q36.zip"; + sha256 = "1l05ljhxdyh2lb5ydlr4xfjbx4lvg6g2a2fg097yqhw95n3xxqv1"; + }) + ]; + + unpackPhase = "for src in $srcs; do ${unzip}/bin/unzip $src; done"; + + dontConfigure = true; + dontBuild = true; + + preferLocalBuild = true; + + installPhase = '' + install -Dm644 **/*.hgt -t $out/share/qmapshack/DEM + ${gdal}/bin/gdalbuildvrt $out/share/qmapshack/DEM/SRTM3.vrt $out/share/qmapshack/DEM/*.hgt + ''; + + meta = with stdenv.lib; { + description = "Digital Elevation Data"; + homepage = "http://www.viewfinderpanoramas.org/"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -78,6 +78,7 @@ lib.makeScope newScope ( }; qmapshack-onlinemaps = callPackage ./data/maps/qmapshack-onlinemaps {}; qmapshack-routinodb = callPackage ./data/maps/qmapshack-routinodb {}; + qmapshack-dem = callPackage ./data/maps/qmapshack-dem {}; redict = libsForQt5.callPackage ./applications/redict { inherit sources; };