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