commit ec0c11e16257b4e1ded3968d75edeb1e312bccf7 parent 70db2c0825164605ec64438d5d61a45c2a071ea0 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Wed, 15 Jan 2020 00:27:05 +0300 Add gmaptool Diffstat:
M | default.nix | | | 1 | + |
A | pkgs/gmaptool/default.nix | | | 27 | +++++++++++++++++++++++++++ |
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/default.nix b/default.nix @@ -36,6 +36,7 @@ in rec { embox = callPackage ./pkgs/embox { inherit (sources) embox; }; + gmaptool = callPackage ./pkgs/gmaptool { }; goldendict-dark-theme = callPackage ./pkgs/goldendict-themes/dark-theme.nix { }; gpx-layer = perlPackages.callPackage ./pkgs/gpx-layer { diff --git a/pkgs/gmaptool/default.nix b/pkgs/gmaptool/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchzip }: + +stdenv.mkDerivation rec { + pname = "gmaptool"; + version = "0.8.220"; + + src = fetchzip { + url = "https://www.gmaptool.eu/sites/default/files/lgmt08220.zip"; + sha256 = "0wf9ys52slf2hzmfl81d8754alfqiylsk7g5af3lxsiivd5284gy"; + stripRoot = false; + }; + + dontBuild = true; + dontFixup = true; + + installPhase = '' + install -Dm755 gmt -t "$out/bin" + ''; + + meta = with stdenv.lib; { + description = "Program for splitting and merging maps in Garmin format"; + homepage = "https://www.gmaptool.eu"; + license = licenses.cc-by-sa-30; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.all; + }; +}