From 9de7767424b90ed6947ef2c1c780fc56a87985cf Mon Sep 17 00:00:00 2001 From: iamtimmy <58427647+iamtimmy@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:40:28 +0100 Subject: [PATCH] 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` --- pkgs/by-name/ov/oversteer/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ov/oversteer/package.nix b/pkgs/by-name/ov/oversteer/package.nix index fd1e063529ae2..fc7a9dcbf37d2 100644 --- a/pkgs/by-name/ov/oversteer/package.nix +++ b/pkgs/by-name/ov/oversteer/package.nix @@ -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-warn /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 = [ ];