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 fa5103c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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 @@ -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 = [ ];
Expand Down

0 comments on commit fa5103c

Please sign in to comment.