steamPackages.steam: add udev rules
This commit is contained in:
parent
e24bf9062b
commit
9721604610
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue