diff options
Diffstat (limited to 'pkgs/games/steam/fhsenv.nix')
-rw-r--r-- | pkgs/games/steam/fhsenv.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/games/steam/fhsenv.nix b/pkgs/games/steam/fhsenv.nix index cd2046b2383..37ec8ef8c7e 100644 --- a/pkgs/games/steam/fhsenv.nix +++ b/pkgs/games/steam/fhsenv.nix @@ -49,6 +49,7 @@ let # Zachtronics and a few other studios expect STEAM_LD_LIBRARY_PATH to be present exportLDPath = '' export LD_LIBRARY_PATH=${lib.concatStringsSep ":" ldPath}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH + export STEAM_LD_LIBRARY_PATH="$STEAM_LD_LIBRARY_PATH''${STEAM_LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" ''; # bootstrap.tar.xz has 444 permissions, which means that simple deletes fail @@ -252,7 +253,7 @@ in buildFHSUserEnv rec { fi fi - export STEAM_LD_LIBRARY_PATH="$STEAM_LD_LIBRARY_PATH''${STEAM_LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" + ${exportLDPath} ${fixBootstrap} exec steam "$@" ''; @@ -284,7 +285,8 @@ in buildFHSUserEnv rec { exit 1 fi shift - export STEAM_LD_LIBRARY_PATH="$STEAM_LD_LIBRARY_PATH''${STEAM_LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" + + ${exportLDPath} ${fixBootstrap} exec -- "$run" "$@" ''; |