about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/games/steam/chrootenv.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix
index a7cdfa9e7c1d..f1ec603d3561 100644
--- a/pkgs/games/steam/chrootenv.nix
+++ b/pkgs/games/steam/chrootenv.nix
@@ -107,12 +107,12 @@ buildFHSUserEnv {
       pkgs.gst_plugins_base
     ];
 
-  extraBuildCommandsMulti = ''
-    cd usr/lib
-    ln -sf ../lib64/steam steam
+  extraBuildCommands = ''
+    [ -d lib64 ] && mv lib64/steam lib
 
     # FIXME: maybe we should replace this with proper libcurl-gnutls
-    ln -s libcurl.so.4 libcurl-gnutls.so.4
+    ( cd lib; ln -s libcurl.so.4 libcurl-gnutls.so.4 )
+    [ -d lib64 ] && ( cd lib64; ln -s libcurl.so.4 libcurl-gnutls.so.4 )
   '';
 
   profile = if withRuntime then ''