From fa5103c49d23635646549f88c792388f78248a75 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ov/oversteer/package.nix b/pkgs/by-name/ov/oversteer/package.nix index fd1e063529ae2..75c61a2ec0254 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; [ @@ -87,6 +89,8 @@ stdenv.mkDerivation { postInstall = '' substituteInPlace $out/lib/udev/rules.d/* \ --replace /bin/sh ${bash}/bin/sh + substituteInPlace $out/lib/udev/rules.d/* \ + --replace-warn /usr/bin/evdev-joystick ${linuxConsoleTools}/bin/evdev-joystick ''; patches = [ ];