Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

domination: make deterministic and clean up

authored by TomaSajt and committed by Francesco Gazzetta e70802d3 fcac9848

+9 -2
+9 -2
pkgs/games/domination/default.nix
··· 4 , jdk8 5 , jre 6 , ant 7 , makeWrapper 8 , makeDesktopItem 9 , copyDesktopItems ··· 41 nativeBuildInputs = [ 42 jdk8 43 ant 44 makeWrapper 45 copyDesktopItems 46 ]; ··· 71 cp -r build/game/* $out/share/domination/ 72 73 # Reimplement the two launchers mentioned in Unix_shortcutSpec.xml with makeWrapper 74 - mkdir -p $out/bin 75 makeWrapper ${jre}/bin/java $out/bin/domination \ 76 --chdir "$out/share/domination" \ 77 --add-flags "-jar $out/share/domination/Domination.jar" ··· 83 runHook postInstall 84 ''; 85 86 passthru.tests = { 87 domination-starts = nixosTests.domination; 88 }; ··· 101 fromSource 102 binaryBytecode # source bundles dependencies as jars 103 ]; 104 - license = licenses.gpl3; 105 maintainers = with maintainers; [ fgaz ]; 106 platforms = platforms.all; 107 };
··· 4 , jdk8 5 , jre 6 , ant 7 + , stripJavaArchivesHook 8 , makeWrapper 9 , makeDesktopItem 10 , copyDesktopItems ··· 42 nativeBuildInputs = [ 43 jdk8 44 ant 45 + stripJavaArchivesHook 46 makeWrapper 47 copyDesktopItems 48 ]; ··· 73 cp -r build/game/* $out/share/domination/ 74 75 # Reimplement the two launchers mentioned in Unix_shortcutSpec.xml with makeWrapper 76 makeWrapper ${jre}/bin/java $out/bin/domination \ 77 --chdir "$out/share/domination" \ 78 --add-flags "-jar $out/share/domination/Domination.jar" ··· 84 runHook postInstall 85 ''; 86 87 + preFixup = '' 88 + # remove extra metadata files for jar files which break stripJavaArchivesHook 89 + find $out/share/domination/lib -type f -name '._*.jar' -delete 90 + ''; 91 + 92 passthru.tests = { 93 domination-starts = nixosTests.domination; 94 }; ··· 107 fromSource 108 binaryBytecode # source bundles dependencies as jars 109 ]; 110 + license = licenses.gpl3Plus; 111 + mainProgram = "domination"; 112 maintainers = with maintainers; [ fgaz ]; 113 platforms = platforms.all; 114 };