summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authorBrian McKenna <brian@brianmckenna.org>2019-04-16 07:43:05 +0530
committerBenjamin Staffin <benley@gmail.com>2019-04-15 22:13:05 -0400
commit098cf3b348a282321b5f117cf22d71cf04ad12d9 (patch)
tree2ad50c2a16a76a96ebe01663313222e2a7a9fb4e /pkgs/games/steam
parent04ff9941b68c621796c0051e98a44f6e2444d2fd (diff)
downloadnixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar.gz
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar.bz2
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar.lz
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar.xz
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.tar.zst
nixpkgs-098cf3b348a282321b5f117cf22d71cf04ad12d9.zip
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.
Diffstat (limited to 'pkgs/games/steam')
-rw-r--r--pkgs/games/steam/chrootenv.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix
index 4661cf7d803..598ddc48563 100644
--- a/pkgs/games/steam/chrootenv.nix
+++ b/pkgs/games/steam/chrootenv.nix
@@ -35,6 +35,10 @@ let
   ldPath = map (x: "/steamrt/${steam-runtime-wrapped.arch}/" + x) steam-runtime-wrapped.libs
            ++ lib.optionals (steam-runtime-wrapped-i686 != null) (map (x: "/steamrt/${steam-runtime-wrapped-i686.arch}/" + x) steam-runtime-wrapped-i686.libs);
 
+  setupSh = writeScript "setup.sh" ''
+    #!${runtimeShell}
+  '';
+
   runSh = writeScript "run.sh" ''
     #!${runtimeShell}
     runtime_paths="${lib.concatStringsSep ":" ldPath}"
@@ -168,6 +172,7 @@ in buildFHSUserEnv rec {
       ln -s ../lib32/steam-runtime steamrt/${steam-runtime-wrapped-i686.arch}
     ''}
     ln -s ${runSh} steamrt/run.sh
+    ln -s ${setupSh} steamrt/setup.sh
   '' else ''
     ln -s /usr/lib/libbz2.so usr/lib/libbz2.so.1.0
     ${lib.optionalString (steam-runtime-wrapped-i686 != null) ''