Skip to content

Commit

Permalink
steamPackages.steam: add udev rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Dec 24, 2020
1 parent e24bf90 commit 9721604
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 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";
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9721604

Please sign in to comment.