git.iko.soy/typeable/nixpkgs
on master help sign in
steam: fix steamrt trying to use a missing setup.sh (#59326)

I was getting the following error after a Steam update: internal error: /steamrt/setup.sh is missing, this runtime is invalid or corrupted The script is used to put things on PATH but it doesn't seem we need to do that.

commit098cf3b348a282321b5f117cf22d71cf04ad12d9 authorBrian McKenna <brian@brianmckenna.org> dateTue 16 Apr 2019, 07:43 (8 years ago) parent04ff994
1 file changed+5
pkgs/games/steam/chrootenv.nix+5
pkgs/games/steam/chrootenv.nix+5
@@ -35,6 +35,10 @@ let
3535 ldPath = map (x: "/steamrt/${steam-runtime-wrapped.arch}/" + x) steam-runtime-wrapped.libs
3636 ++ lib.optionals (steam-runtime-wrapped-i686 != null) (map (x: "/steamrt/${steam-runtime-wrapped-i686.arch}/" + x) steam-runtime-wrapped-i686.libs);
3737
38+ setupSh = writeScript "setup.sh" ''
39+ #!${runtimeShell}
40+ '';
41+
3842 runSh = writeScript "run.sh" ''
3943 #!${runtimeShell}
4044 runtime_paths="${lib.concatStringsSep ":" ldPath}"
@@ -168,6 +172,7 @@ in buildFHSUserEnv rec {
168172 ln -s ../lib32/steam-runtime steamrt/${steam-runtime-wrapped-i686.arch}
169173 ''}
170174 ln -s ${runSh} steamrt/run.sh
175+ ln -s ${setupSh} steamrt/setup.sh
171176 '' else ''
172177 ln -s /usr/lib/libbz2.so usr/lib/libbz2.so.1.0
173178 ${lib.optionalString (steam-runtime-wrapped-i686 != null) ''