mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
Merge pull request #286586 from rafaelrc7/starsector/0.97a-RC7
starsector: 0.96a-RC10 -> 0.97a-RC8
This commit is contained in:
commit
3f48bc8aa9
@ -13,11 +13,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "starsector";
|
||||
version = "0.96a-RC10";
|
||||
version = "0.97a-RC8";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://f005.backblazeb2.com/file/fractalsoftworks/release/starsector_linux-${version}.zip";
|
||||
sha256 = "sha256-RBSnms+QlKgTOhm3t2hDfv7OcMrQCk1rfkz9GaM74WM=";
|
||||
sha256 = "sha256-mfx6tmgIT+bMEpMXAcHVMMJMr1zlALStpoUxYw8MYsY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ copyDesktopItems makeWrapper ];
|
||||
@ -63,12 +63,14 @@ stdenv.mkDerivation rec {
|
||||
# it tries to run everything with relative paths, which makes it CWD dependent
|
||||
# also point mod, screenshot, and save directory to $XDG_DATA_HOME
|
||||
# additionally, add some GC options to improve performance of the game
|
||||
# and remove flags "PermSize" and "MaxPermSize" that were removed with Java 8
|
||||
postPatch = ''
|
||||
substituteInPlace starsector.sh \
|
||||
--replace "./jre_linux/bin/java" "${openjdk}/bin/java" \
|
||||
--replace "./native/linux" "$out/share/starsector/native/linux" \
|
||||
--replace "=." "=\''${XDG_DATA_HOME:-\$HOME/.local/share}/starsector" \
|
||||
--replace "-XX:+CompilerThreadHintNoPreempt" "-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSConcurrentMTEnabled -XX:+DisableExplicitGC"
|
||||
--replace-fail "./jre_linux/bin/java" "${openjdk}/bin/java" \
|
||||
--replace-fail "./native/linux" "$out/share/starsector/native/linux" \
|
||||
--replace-fail "=." "=\''${XDG_DATA_HOME:-\$HOME/.local/share}/starsector" \
|
||||
--replace-warn "-XX:+CompilerThreadHintNoPreempt" "-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote -XX:+CMSConcurrentMTEnabled -XX:+DisableExplicitGC" \
|
||||
--replace-quiet " -XX:PermSize=192m -XX:MaxPermSize=192m" ""
|
||||
'';
|
||||
|
||||
passthru.updateScript = writeScript "starsector-update-script" ''
|
||||
|
Loading…
Reference in New Issue
Block a user