starsector: fail build if unable to insert required cli args

The `-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote` cli
args are required to run the game on recent java versions. Thus, if
unable to insert it, the build should fail.
This commit is contained in:
rafaelrc7 2024-03-21 22:18:30 -03:00
parent a5314b94ed
commit c07cf3d14f
No known key found for this signature in database
GPG Key ID: A2E6A1C9A59514A5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ stdenv.mkDerivation rec {
--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-fail "-XX:+CompilerThreadHintNoPreempt" "-XX:+UnlockDiagnosticVMOptions -XX:-BytecodeVerificationRemote -XX:+CMSConcurrentMTEnabled -XX:+DisableExplicitGC" \
--replace-quiet " -XX:PermSize=192m -XX:MaxPermSize=192m" "" \
--replace-fail "com.fs.starfarer.StarfarerLauncher" "\"\$@\" com.fs.starfarer.StarfarerLauncher"
'';