Skip to content

Commit

Permalink
oversteer: fix udev rule package paths
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
iamtimmy committed Dec 13, 2024
1 parent 6da8776 commit 9de7767
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/by-name/ov/oversteer/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
wrapGAppsHook3,
gobject-introspection,
bash,
linuxConsoleTools,
}:

let
python = python3.withPackages (
p: with p; [
Expand Down Expand Up @@ -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 = [ ];
Expand Down

0 comments on commit 9de7767

Please sign in to comment.