From c54a6dd38e6e092be230683259a43e97b70d9e57 Mon Sep 17 00:00:00 2001 From: ison Date: Fri, 11 Sep 2020 00:05:46 -0600 Subject: [PATCH] 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. --- nongnu/packages/steam-client.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nongnu/packages/steam-client.scm b/nongnu/packages/steam-client.scm index 0096384..7dd2aa1 100644 --- a/nongnu/packages/steam-client.scm +++ b/nongnu/packages/steam-client.scm @@ -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"))