default.nix (786B)
1 { 2 lib, 3 stdenv, 4 fetchzip, 5 }: 6 let 7 version = "0.8.220"; 8 filename = "lgmt${lib.replaceStrings [ "." ] [ "" ] version}.zip"; 9 in 10 stdenv.mkDerivation { 11 pname = "gmaptool"; 12 inherit version; 13 14 src = fetchzip { 15 url = "https://www.gmaptool.eu/sites/default/files/${filename}"; 16 hash = "sha256-/hEkStsx6k6HU+WdqamP2FFFykEtIOrqh8JRLYr2yXE="; 17 stripRoot = false; 18 }; 19 20 dontFixup = true; 21 22 installPhase = "install -Dm755 gmt -t $out/bin"; 23 24 meta = { 25 description = "Program for splitting and merging maps in Garmin format"; 26 homepage = "https://www.gmaptool.eu"; 27 license = lib.licenses.cc-by-sa-30; 28 maintainers = [ lib.maintainers.sikmir ]; 29 platforms = [ 30 "i686-linux" 31 "x86_64-linux" 32 ]; 33 mainProgram = "gmt"; 34 skip.ci = true; 35 }; 36 }