nur-packages

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

commit 4bedc59f3ef2c16883ec0f0a1649341a4dc7d19c
parent 70cda18231eb6997eac7ed5212ca2deeae5597b4
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 26 Nov 2020 00:06:58 +0300

Add usa-osm-topo-routable

Diffstat:
Apkgs/data/maps/usa-osm-topo-routable/default.nix | 44++++++++++++++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/maps/usa-osm-topo-routable/default.nix b/pkgs/data/maps/usa-osm-topo-routable/default.nix @@ -0,0 +1,44 @@ +{ stdenvNoCC, lib, fetchurl, p7zip }: + +stdenvNoCC.mkDerivation rec { + pname = "usa-osm-topo-routable"; + version = "33"; + + srcs = [ + (fetchurl { + url = "http://gmaptool.eu/sites/default/files/download/USA_OSM_Topo_v${version}.7z.001"; + sha256 = "0603ja9j0m7yi88ykq60ix4savqr74nc4dhrjfhjidxm0zrdc48k"; + }) + (fetchurl { + url = "http://gmaptool.eu/sites/default/files/download/USA_OSM_Topo_v${version}.7z.002"; + sha256 = "1q9l03fqnxd6rm6w77sjb1wd9cqc62ilraplrz2a0fsnf2n4wx5n"; + }) + (fetchurl { + url = "http://gmaptool.eu/sites/default/files/download/USA_OSM_Topo_v${version}.7z.003"; + sha256 = "1kk82qp6xmsjh2s9jfjmvpa5ckiqhkl5a3hazamdaxk30zg3d0h5"; + }) + (fetchurl { + url = "http://gmaptool.eu/sites/default/files/download/USA_OSM_Topo_v${version}.7z.004"; + sha256 = "1bp73mnd6bcwj9clps6knvrmpsykx9akqv31jai7kg2x500zq79m"; + }) + (fetchurl { + url = "http://gmaptool.eu/sites/default/files/download/USA_OSM_Topo_v${version}.7z.005"; + sha256 = "1wz1kxinh6fh092zm6wzknkp46xdbnmdnd9mbclx1a2q6fid74x2"; + }) + ]; + + unpackPhase = lib.concatMapStringsSep "\n" (src: "ln -s ${src} ${src.name}") srcs; + + nativeBuildInputs = [ p7zip ]; + + installPhase = "7z x USA_OSM_Topo_v${version}.7z.001 -o$out"; + + meta = with lib; { + description = "USA OSM Topo Routable"; + homepage = "https://www.gmaptool.eu/en/content/usa-osm-topo-routable"; + license = licenses.cc-by-nc-40; + maintainers = [ 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 ( slazav-hr = callPackage ./data/maps/slazav/hr.nix { }; slazav-podm = callPackage ./data/maps/slazav/podm.nix { }; slazav-podm-bin = callPackage ./data/maps/slazav/podm-bin.nix { }; + usa-osm-topo-routable = callPackage ./data/maps/usa-osm-topo-routable { }; goldendict-arc-dark-theme = callPackage ./data/themes/goldendict-themes/arc-dark-theme.nix { };