oversteer: fix udev rule package paths

With the following in a nixosModule context
`services.udev.packages = with pkgs; [ oversteer ];`
A `nixos-rebuild` fails with `contains references to
/usr/bin/evdev-joystick`
This commit is contained in:
iamtimmy
2024-12-13 21:29:13 +01:00
parent 6da8776012
commit 41135a0fd8
+5 -1
View File
@@ -16,7 +16,9 @@
wrapGAppsHook3,
gobject-introspection,
bash,
linuxConsoleTools,
}:
let
python = python3.withPackages (
p: with p; [
@@ -86,7 +88,9 @@ stdenv.mkDerivation {
postInstall = ''
substituteInPlace $out/lib/udev/rules.d/* \
--replace /bin/sh ${bash}/bin/sh
--replace-fail /bin/sh ${bash}/bin/sh
substituteInPlace $out/lib/udev/rules.d/99-fanatec-wheel-perms.rules \
--replace-fail /usr/bin/evdev-joystick ${linuxConsoleTools}/bin/evdev-joystick
'';
patches = [ ];