nur-packages

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

commit f90ebe1e3cb6dfc08f19e8c0d0cab8b37dda2f7c
parent 4b05d0fca31b78ae747f0db2e1f9c5cd401e6426
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 25 Apr 2020 16:10:06 +0300

Add gpxsee-poi.westra

Diffstat:
Mpkgs/data/maps/gpxsee-poi/default.nix | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/maps/gpxsee-poi/default.nix b/pkgs/data/maps/gpxsee-poi/default.nix @@ -66,4 +66,28 @@ skip.ci = true; }; }; + + westra = fetchurl { + name = "westra-2020-04-25"; + url = "https://nakarte.me/westraPasses/westra_passes.json"; + sha256 = "sha256-v2htTodltU+f+sUup3KZBq3zd+Oe3532kF7SWbRx4wA="; + downloadToTemp = true; + recursiveHash = true; + preferLocalBuild = true; + postFetch = '' + install -dm755 $out/share/gpxsee/POI + cat $downloadedFile | \ + ${gzip}/bin/gzip -d | \ + ${jq}/bin/jq -r '.[]|[.latlon[1],.latlon[0],.name]|@csv' > $out/share/gpxsee/POI/westra_passes.csv + ''; + + meta = with lib; { + homepage = "https://westra.ru/passes/"; + description = "Mountain passes (Westra)"; + maintainers = with maintainers; [ sikmir ]; + license = licenses.free; + platforms = platforms.all; + skip.ci = true; + }; + }; }