Merge pull request #202808 from aidalgol/starsector-out-cleanup

starsector: reduce nix profile pollution

authored by Bruno Bigras and committed by GitHub b3b7ba7d ce1f9354

+6 -6
+6 -6
pkgs/games/starsector/default.nix
··· 41 installPhase = '' 42 runHook preInstall 43 44 - mkdir -p $out/bin 45 rm -r jre_linux # remove bundled jre7 46 rm starfarer.api.zip 47 - cp -r ./* $out 48 49 mkdir -p $out/share/icons/hicolor/64x64/apps 50 ln -s $out/graphics/ui/s_icon64.png $out/share/icons/hicolor/64x64/apps/starsector.png 51 52 - wrapProgram $out/starsector.sh \ 53 --prefix PATH : ${lib.makeBinPath [ openjdk ]} \ 54 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs} \ 55 --run 'mkdir -p ''${XDG_DATA_HOME:-~/.local/share}/starsector' \ 56 - --chdir "$out" 57 - ln -s $out/starsector.sh $out/bin/starsector 58 59 runHook postInstall 60 ''; ··· 65 postPatch = '' 66 substituteInPlace starsector.sh \ 67 --replace "./jre_linux/bin/java" "${openjdk}/bin/java" \ 68 - --replace "./native/linux" "$out/native/linux" \ 69 --replace "=." "=\''${XDG_DATA_HOME:-\$HOME/.local/share}/starsector" \ 70 --replace "-XX:+CompilerThreadHintNoPreempt" "-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:+DisableExplicitGC" 71 '';
··· 41 installPhase = '' 42 runHook preInstall 43 44 + mkdir -p $out/bin $out/share/starsector 45 rm -r jre_linux # remove bundled jre7 46 rm starfarer.api.zip 47 + cp -r ./* $out/share/starsector 48 49 mkdir -p $out/share/icons/hicolor/64x64/apps 50 ln -s $out/graphics/ui/s_icon64.png $out/share/icons/hicolor/64x64/apps/starsector.png 51 52 + wrapProgram $out/share/starsector/starsector.sh \ 53 --prefix PATH : ${lib.makeBinPath [ openjdk ]} \ 54 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs} \ 55 --run 'mkdir -p ''${XDG_DATA_HOME:-~/.local/share}/starsector' \ 56 + --chdir "$out/share/starsector" 57 + ln -s $out/share/starsector/starsector.sh $out/bin/starsector 58 59 runHook postInstall 60 ''; ··· 65 postPatch = '' 66 substituteInPlace starsector.sh \ 67 --replace "./jre_linux/bin/java" "${openjdk}/bin/java" \ 68 + --replace "./native/linux" "$out/share/starsector/native/linux" \ 69 --replace "=." "=\''${XDG_DATA_HOME:-\$HOME/.local/share}/starsector" \ 70 --replace "-XX:+CompilerThreadHintNoPreempt" "-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:+DisableExplicitGC" 71 '';