From c07cf3d14f34258f6b8050d78f0f9b9998bcf0fc Mon Sep 17 00:00:00 2001 From: rafaelrc7 Date: Thu, 21 Mar 2024 22:18:30 -0300 Subject: [PATCH] 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. --- pkgs/games/starsector/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/starsector/default.nix b/pkgs/games/starsector/default.nix index 6a8831211627..8e38f232f21e 100644 --- a/pkgs/games/starsector/default.nix +++ b/pkgs/games/starsector/default.nix @@ -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" '';