commit dc3695c4af4d4b877995fc7b82964570cd8d31ef parent 0ed5232cf4142215056523a334a2f2a2449aef23 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sun, 2 Feb 2020 16:27:10 +0300 Add hiblovgpsmap Diffstat:
M | default.nix | | | 1 | + |
A | pkgs/hiblovgpsmap/default.nix | | | 31 | +++++++++++++++++++++++++++++++ |
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix @@ -74,6 +74,7 @@ in rec { gt4gd = python3Packages.callPackage ./pkgs/gt4gd { inherit (sources) google-translate-for-goldendict; }; + hiblovgpsmap = callPackage ./pkgs/hiblovgpsmap { }; ish = callPackage ./pkgs/ish { }; libshell = callPackage ./pkgs/libshell { inherit (sources) libshell; diff --git a/pkgs/hiblovgpsmap/default.nix b/pkgs/hiblovgpsmap/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + pname = "hiblovgpsmap"; + version = "2019-10-28"; + + src = fetchurl { + url = "https://drive.google.com/uc?export=download&id=10aAOKY8U7TQvFvuWBkwTei9iP3-cUvoE"; + sha256 = "1079bn8rkdfsbqivxkm3zi327k2i4k5p20rr2jw7gacfsvdk4954"; + name = "OV-Hib-Lov-20191028-1.02.zip"; + }; + + nativeBuildInputs = [ unzip ]; + + unpackPhase = "unzip $src"; + + dontBuild = true; + + installPhase = '' + install -dm755 "$out/share/gpxsee/maps" + cp *.img "$out/share/gpxsee/maps" + ''; + + meta = with stdenv.lib; { + description = "Detailed map of Khibins and Lovozero for GPS"; + homepage = "https://vk.com/hiblovgpsmap"; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + }; +}