steam: re-expose LD_LIBRARY_PATH

Was incorrectly altered after cherry-pick
This commit is contained in:
Jonathan Ringer 2022-03-04 14:51:43 -08:00 committed by Jonathan Ringer
parent a0bbd640b8
commit 198f6c583e

View File

@ -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" "$@"
'';