Skip to content

Commit

Permalink
starsector: add missing runtime dependency xrandr
Browse files Browse the repository at this point in the history
The starsector game is made using LWJGL, which depends on xrandr. The
library runs `xrandr -q` and parses its output to get screen
resolutions. Thus, if the binary is missing, the game will crash on
startup.

https://github.com/LWJGL/lwjgl/blob/master/src/java/org/lwjgl/opengl/XRandR.java#L72
  • Loading branch information
rafaelrc7 committed Jan 6, 2024
1 parent 24869f0 commit df68e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/games/starsector/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ stdenv.mkDerivation rec {
ln -s $out/graphics/ui/s_icon64.png $out/share/icons/hicolor/64x64/apps/starsector.png
wrapProgram $out/share/starsector/starsector.sh \
--prefix PATH : ${lib.makeBinPath [ openjdk ]} \
--prefix PATH : ${lib.makeBinPath [ openjdk xorg.xrandr ]} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath buildInputs} \
--run 'mkdir -p ''${XDG_DATA_HOME:-~/.local/share}/starsector' \
--chdir "$out/share/starsector"
Expand Down

0 comments on commit df68e79

Please sign in to comment.