about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-05-17 07:40:24 +0200
committeraszlig <aszlig@nix.build>2018-05-17 07:45:03 +0200
commit89625e825dd4ad4ac78c98f443f6731042d75487 (patch)
treec6621d9679a6177fbdfb9cf180d169640bd97f9b /pkgs/games
parent1a2eb0bf55b2b64f8cbf0482d7d79906fc5526c5 (diff)
games/stardew-valley: Add libGL to LD_LIBRARY_PATH
I haven't bisected this to know the exact commit that made this change
necessary, but it might be that SDL2 now no longer propagates libGL
anymore.

If this is the case for other games as well, I might want to do a
bisect, but for now let's just fix it.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/gog/stardew-valley.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/games/gog/stardew-valley.nix b/pkgs/games/gog/stardew-valley.nix
index ee39fbd9..4dcbcbae 100644
--- a/pkgs/games/gog/stardew-valley.nix
+++ b/pkgs/games/gog/stardew-valley.nix
@@ -1,4 +1,4 @@
-{ lib, buildGame, fetchGog, unzip, makeWrapper, mono50, SDL2, openal }:
+{ lib, buildGame, fetchGog, unzip, makeWrapper, mono50, SDL2, libGL, openal }:
 
 buildGame rec {
   name = "stardew-valley-${version}";
@@ -37,6 +37,7 @@ buildGame rec {
     makeWrapper ${lib.escapeShellArg mono50}/bin/mono \
       "$out/bin/stardew-valley" \
       --add-flags "$out/libexec/stardew-valley/StardewValley.exe" \
+      --prefix LD_LIBRARY_PATH : ${lib.escapeShellArg "${libGL}/lib"} \
       --run "cd '$out/libexec/stardew-valley'"
   '';