steam: added java and steam-run to documentation, removed patchelf info
This commit is contained in:
parent
9aca55e79d
commit
21449c23cb
@ -418,7 +418,7 @@ it. Place the resulting <filename>package.nix</filename> file into
|
|||||||
chroot environment, as documented
|
chroot environment, as documented
|
||||||
<link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>.
|
<link xlink:href="http://sandervanderburg.blogspot.nl/2013/09/composing-fhs-compatible-chroot.html">here</link>.
|
||||||
This allows us to have binaries in the expected paths without disrupting the system,
|
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.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@ -464,7 +464,6 @@ it. Place the resulting <filename>package.nix</filename> file into
|
|||||||
or because they cannot be patched.The steps to launch a game
|
or because they cannot be patched.The steps to launch a game
|
||||||
directly are:
|
directly are:
|
||||||
<orderedlist>
|
<orderedlist>
|
||||||
<listitem><para>Patch the script/binary if you can.</para></listitem>
|
|
||||||
<listitem><para>Add a file named <filename>steam_appid.txt</filename> in
|
<listitem><para>Add a file named <filename>steam_appid.txt</filename> in
|
||||||
the binary folder, with the appid as contents (it can be found in the
|
the binary folder, with the appid as contents (it can be found in the
|
||||||
stdout from steam).</para></listitem>
|
stdout from steam).</para></listitem>
|
||||||
@ -501,14 +500,18 @@ libGL error: failed to load driver: swrast</programlisting></para></listitem>
|
|||||||
<programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
|
<programlisting>steam.sh: line 713: 7842 Segmentation fault (core dumped)</programlisting>
|
||||||
have a look at <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this pull request</link>.
|
have a look at <link xlink:href="https://github.com/NixOS/nixpkgs/pull/20269">this pull request</link>.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
|
||||||
</itemizedlist></listitem></varlistentry>
|
</itemizedlist></listitem></varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>Known issues</term>
|
<term>Java</term>
|
||||||
<listitem><orderedlist>
|
<listitem><orderedlist>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
No java in steam chrootenv. Games affected: Towns:
|
There is no java in steam chrootenv by default. If you get a message like
|
||||||
<programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
|
<programlisting>/home/foo/.local/share/Steam/SteamApps/common/towns/towns.sh: line 1: java: command not found</programlisting>
|
||||||
|
You need to add
|
||||||
|
<programlisting> steam.override { withJava = true; };</programlisting>
|
||||||
|
to your configuration.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</orderedlist></listitem></varlistentry>
|
</orderedlist></listitem></varlistentry>
|
||||||
|
|
||||||
@ -517,6 +520,23 @@ libGL error: failed to load driver: swrast</programlisting></para></listitem>
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section xml:id="sec-steam-run">
|
||||||
|
|
||||||
|
<title>steam-run</title>
|
||||||
|
<para>
|
||||||
|
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
|
||||||
|
<programlisting>pkgs.(steam.override {
|
||||||
|
nativeOnly = true;
|
||||||
|
newStdcpp = true;
|
||||||
|
}).run</programlisting>
|
||||||
|
to your configuration, rebuild, and run the game with
|
||||||
|
<programlisting>steam-run ./foo</programlisting>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user