diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-12-23 08:54:18 -0800 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-12-23 22:46:56 -0800 |
commit | 972160461015767a1fba93114e1756e7e9645d98 (patch) | |
tree | 35858f09f61d83eb01821727e2e29caa7e7f6a93 /pkgs/games | |
parent | e24bf9062b4b23f4c11f57399d11ad73c86e0828 (diff) | |
download | nixlib-972160461015767a1fba93114e1756e7e9645d98.tar nixlib-972160461015767a1fba93114e1756e7e9645d98.tar.gz nixlib-972160461015767a1fba93114e1756e7e9645d98.tar.bz2 nixlib-972160461015767a1fba93114e1756e7e9645d98.tar.lz nixlib-972160461015767a1fba93114e1756e7e9645d98.tar.xz nixlib-972160461015767a1fba93114e1756e7e9645d98.tar.zst nixlib-972160461015767a1fba93114e1756e7e9645d98.zip |
steamPackages.steam: add udev rules
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/steam/steam.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/games/steam/steam.nix b/pkgs/games/steam/steam.nix index fa99f39d68cb..ed837c9f0bd2 100644 --- a/pkgs/games/steam/steam.nix +++ b/pkgs/games/steam/steam.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, runtimeShell, traceDeps ? false}: +{ stdenv, fetchurl, runtimeShell, traceDeps ? false, bash }: let traceLog = "/tmp/steam-trace-dependencies.log"; @@ -27,6 +27,12 @@ in stdenv.mkDerivation { chmod +x $out/bin/steamdeps ''} + # install udev rules + mkdir -p $out/etc/udev/rules.d/ + cp ./subprojects/steam-devices/*.rules $out/etc/udev/rules.d/ + substituteInPlace $out/etc/udev/rules.d/60-steam-input.rules \ + --replace "/bin/sh" "${bash}/bin/bash" + # this just installs a link, "steam.desktop -> /lib/steam/steam.desktop" rm $out/share/applications/steam.desktop sed -e 's,/usr/bin/steam,steam,g' steam.desktop > $out/share/applications/steam.desktop |