about summary refs log tree commit diff
path: root/pkgs/games/shattered-pixel-dungeon
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2023-12-11 16:40:59 +0100
committerFrancesco Gazzetta <fgaz@fgaz.me>2023-12-11 20:38:37 +0000
commit086f558b6d304a76cbf006a509198e713c7a0fd4 (patch)
tree403f64ce8fabd56ddb10841a43538300d4287e07 /pkgs/games/shattered-pixel-dungeon
parent3c1873efa9577f585b7b0b8c6c91cb1b68ba8d6f (diff)
shattered-pixel-dungeon: fix crash on startup
This also affects the shattered-pixel-dungeon variants/mods.

Fixes #273261
Diffstat (limited to 'pkgs/games/shattered-pixel-dungeon')
-rw-r--r--pkgs/games/shattered-pixel-dungeon/generic.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/shattered-pixel-dungeon/generic.nix b/pkgs/games/shattered-pixel-dungeon/generic.nix
index 92427674c18af..fdd87ba2bd19b 100644
--- a/pkgs/games/shattered-pixel-dungeon/generic.nix
+++ b/pkgs/games/shattered-pixel-dungeon/generic.nix
@@ -13,6 +13,7 @@
 , gradle
 , perl
 , jre
+, libGL
 , libpulseaudio
 , makeDesktopItem
 , copyDesktopItems
@@ -104,7 +105,7 @@ in stdenv.mkDerivation (cleanAttrs // {
     install -Dm644 desktop/build/libs/desktop-*.jar $out/share/${pname}.jar
     mkdir $out/bin
     makeWrapper ${jre}/bin/java $out/bin/${pname} \
-      --prefix LD_LIBRARY_PATH : ${libpulseaudio}/lib \
+      --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL libpulseaudio ]} \
       --add-flags "-jar $out/share/${pname}.jar"
 
     for s in 16 32 48 64 128 256; do