default.nix (958B)
1 { lib, stdenv, fetchurl, unzip, wine, writers }: 2 let 3 runScript = writers.writeBash "gpxeditor" '' 4 export WINEDEBUG=warn+all 5 ${wine}/bin/wine @out@/GPX_Editor.exe 6 ''; 7 in 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "gpxeditor"; 10 version = "1.8.0"; 11 12 src = fetchurl { 13 url = "mirror://sourceforge/gpxeditor/GPX%20Editor/GPX%20Editor%20${finalAttrs.version}.zip"; 14 hash = "sha256-KgVwx79kOQzXJQaQK1VRWHJHIU4yBpCH/7pFh7G4D54="; 15 }; 16 17 dontUnpack = true; 18 19 installPhase = '' 20 install -dm755 $out/bin 21 substitute ${runScript} $out/bin/gpxeditor --subst-var out 22 chmod +x $out/bin/gpxeditor 23 24 ${unzip}/bin/unzip $src -d $out 25 ''; 26 27 preferLocalBuild = true; 28 29 meta = with lib; { 30 description = "Load, modify and save your GPX files"; 31 homepage = "https://sourceforge.net/projects/gpxeditor/"; 32 license = licenses.gpl2; 33 maintainers = [ maintainers.sikmir ]; 34 platforms = platforms.all; 35 skip.ci = true; 36 }; 37 })