nur-packages

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

commit b8b3da302e98d4bdbb94b4f05b1f72e0ee7df420
parent 1e44a2cee5a2f6603fa19ed0bfd36a273b726b2d
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu,  3 Dec 2020 02:11:09 +0300

Add gadm

Diffstat:
Apkgs/data/misc/gadm/default.nix | 28++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/misc/gadm/default.nix b/pkgs/data/misc/gadm/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchurl, unzip, country ? "RUS" }: +let + pname = "gadm-" + country; + version = "3.6"; +in +fetchurl { + name = "${pname}-${version}"; + url = "https://biogeo.ucdavis.edu/data/gadm${version}/gpkg/gadm${lib.replaceStrings [ "." ] [ "" ] version}_${country}_gpkg.zip"; + sha256 = { + RUS = "1zmkaydf3pz0znxzqc87c090nx1dhzkkiccld0jwd08vkfp9vqbf"; + FIN = "0r4hlm59j8aanz62jw762fcxvpsid03ps6vksxzjqnjfpsnd1w3a"; + EST = "1bkaxsvma5igirr7llklvpsn9n0bbis8ds2d3fg9vfxg6jnw9nzv"; + }.${country}; + downloadToTemp = true; + recursiveHash = true; + preferLocalBuild = true; + postFetch = "${unzip}/bin/unzip $downloadedFile -d $out"; + + meta = with lib; { + description = "GADM data"; + homepage = "https://gadm.org"; + changelog = "https://gadm.org/changelog.html"; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -79,6 +79,7 @@ lib.makeScope newScope ( slazav-podm-bin = callPackage ./data/maps/slazav/podm-bin.nix { }; usa-osm-topo-routable = callPackage ./data/maps/usa-osm-topo-routable { }; + gadm = callPackage ./data/misc/gadm { }; gpxsee-poi = callPackage ./data/misc/gpxsee-poi { }; osm-extracts = callPackage ./data/misc/osm-extracts { }; routinodb = callPackage ./data/misc/routinodb { };