From 89625e825dd4ad4ac78c98f443f6731042d75487 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 17 May 2018 07:40:24 +0200 Subject: 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 --- pkgs/games/gog/stardew-valley.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs/games/gog') 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'" ''; -- cgit 1.4.1