From 21449c23cbbaadfcc0066d5dc320b4bd3f06bc14 Mon Sep 17 00:00:00 2001 From: Marti Serra Date: Sun, 11 Dec 2016 12:47:48 +0100 Subject: [PATCH 1/2] steam: added java and steam-run to documentation, removed patchelf info --- doc/package-notes.xml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/package-notes.xml b/doc/package-notes.xml index de148ec5739f..0a4c746c3715 100644 --- a/doc/package-notes.xml +++ b/doc/package-notes.xml @@ -418,7 +418,7 @@ it. Place the resulting package.nix file into chroot environment, as documented here. This allows us to have binaries in the expected paths without disrupting the system, - and to avoid patching them. + and to avoid patching them to work in a non FHS environment. @@ -464,7 +464,6 @@ it. Place the resulting package.nix file into or because they cannot be patched.The steps to launch a game directly are: - Patch the script/binary if you can. Add a file named steam_appid.txt in the binary folder, with the appid as contents (it can be found in the stdout from steam). @@ -501,14 +500,18 @@ libGL error: failed to load driver: swrast steam.sh: line 713: 7842 Segmentation fault (core dumped) have a look at this pull request. + - Known issues + Java - No java in steam chrootenv. Games affected: Towns: + There is no java in steam chrootenv by default. If you get a message like /home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found + You need to add + steam.override { withJava = true; }; + to your configuration. @@ -517,6 +520,23 @@ libGL error: failed to load driver: swrast +
+ +steam-run + +The FHS-compatible chroot used for steam can also be used to run +other linux games that expect a FHS environment. +To do it, add +pkgs.(steam.override { + nativeOnly = true; + newStdcpp = true; + }).run +to your configuration, rebuild, and run the game with +steam-run ./foo + + +
+ From b8984954ff0e9bc7ea92891dcb0e44757004d70d Mon Sep 17 00:00:00 2001 From: Marti Serra Date: Sun, 11 Dec 2016 16:57:28 +0100 Subject: [PATCH 2/2] steam: removed unuseful section from documentation --- doc/package-notes.xml | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/doc/package-notes.xml b/doc/package-notes.xml index 0a4c746c3715..0ba7ec4c44d4 100644 --- a/doc/package-notes.xml +++ b/doc/package-notes.xml @@ -457,29 +457,6 @@ it. Place the resulting package.nix file into to see what is causing steam to fail. - - Game X fails to start - Games may fail to start because they lack - dependencies (this should be added to the script, for now), - or because they cannot be patched.The steps to launch a game - directly are: - - Add a file named steam_appid.txt in - the binary folder, with the appid as contents (it can be found in the - stdout from steam). - Using the LD_LIBRARY_PATH from the nix/store steam script, - with some additions, launch the game binary: - LD_LIBRARY_PATH=~/.steam/bin32:$LD_LIBRARY_PATH:/nix/store/pfsa... blabla ...curl-7.29.0/lib:. ./Osmos.bin3 - (if you could not patchelf the game, call ld.so directly - with the binary as param). With this technique, I can play many games - directly from steam. Others, like Team Fortress, cannot be patched - so I only managed to run them from the cmd line. - - - - - - Using the FOSS Radeon drivers