nur-packages

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

commit 960bd2c7b4eeda237a19a751c5cd56b22db90b69
parent d4a1edd49f43977583a3af1d1c1660ff89e39f83
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 25 Apr 2020 12:48:35 +0300

Add gpxsee-dem

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

diff --git a/pkgs/data/maps/gpxsee-dem/default.nix b/pkgs/data/maps/gpxsee-dem/default.nix @@ -0,0 +1,59 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + pname = "gpxsee-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/gpxsee/DEM + ''; + + 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 @@ -33,6 +33,7 @@ lib.makeScope newScope ( huzheng = callPackage ./data/dicts/huzheng {}; wiktionary = callPackage ./data/dicts/wiktionary {}; + gpxsee-dem = callPackage ./data/maps/gpxsee-dem {}; gpxsee-maps = callPackage ./data/maps/gpxsee-maps {}; gpxsee-poi = callPackage ./data/maps/gpxsee-poi {}; hiblovgpsmap = callPackage ./data/maps/hiblovgpsmap {};