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