nongnu: steam: Add controller support.

* nongnu/packages/steam-client.scm (steam)[arguments]: Expose paths /dev/input
  and /sys/class/input in the guix environment command.
This commit is contained in:
ison 2020-09-11 00:05:46 -06:00 committed by Pierre Neidhardt
parent 79a49be890
commit c54a6dd38e
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -454,6 +454,7 @@ fi
# Make sure pulseaudio is running, if it starts first time inside the sandbox it will be broken
pulseaudio -D > /dev/null 2>&1
# Start sandbox
# /dev/input and /sys/class/input added for controller support.
guix environment --ad-hoc --container --no-cwd --network \\
--preserve=DISPLAY \\
--preserve=SDL_AUDIODRIVER \\
@ -465,10 +466,12 @@ guix environment --ad-hoc --container --no-cwd --network \\
$(if [ -e \"/etc/machine-id\" ]; then echo -n \"--expose=/etc/machine-id\"; else echo -n ; fi) \\
$(if [ -e \"/run/user/$UID/bus\" ]; then echo -n \"--share=/run/user/$UID/bus\"; else echo -n ; fi) \\
$(if [ -e \"$HOME/.config/pulse\" ]; then echo -n \"--share=$HOME/.config/pulse\"; else echo -n ""; fi) \\
--expose=/var/run/dbus \\
--expose=/dev/dri \\
--expose=/dev/input \\
--expose=/sys/class/input \\
--expose=/sys/dev \\
--expose=/sys/devices \\
--expose=/dev/dri \\
--expose=/var/run/dbus \\
--share=/dev/shm \\
-m \"" manifest-path "\" \\
\"${shell_command[@]}\"\n"))