Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oversteer: fix udev rule package paths #364728

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

iamtimmy
Copy link
Contributor

@iamtimmy iamtimmy commented Dec 12, 2024

With the following in a nixosModule context services.udev.packages = with pkgs; [ oversteer ]; a nixos-rebuild fails to apply udev rules with contains references to /usr/bin/evdev-joystick

Adding the linuxConsoleTools package as a dependency was needed to provide the evdev-joystick binary.

I have not been able to test if the evdev rules work for the Fanatec hardware. I was able to verify that the path in the build output is now compliant.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Dec 12, 2024
@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 12, 2024
@iamtimmy iamtimmy force-pushed the fix/oversteer branch 3 times, most recently from 0120813 to 5afc78b Compare December 12, 2024 23:27
@iamtimmy
Copy link
Contributor Author

For confirmation that the package is working now:
image
for the impatient: package and os module

@ofborg ofborg bot added 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin labels Dec 13, 2024
philiptaron

This comment was marked as outdated.

@philiptaron

This comment was marked as outdated.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin and removed 10.rebuild-darwin: 1 10.rebuild-darwin: 1-10 10.rebuild-linux: 1 labels Dec 13, 2024
@iamtimmy
Copy link
Contributor Author

Why --replace-warn instead of --replace-fail?

Because of the other udev rules detailed above (Gosh you're fast). Should I add --replace-fail to the /bin/sh substitution? That one does work.

@philiptaron
Copy link
Contributor

philiptaron commented Dec 13, 2024

Should I add --replace-fail to the /bin/sh substitution? That one does work.

Yes please!

(Gosh you're fast)

Thanks 😁

@philiptaron philiptaron changed the title fix oversteer udev rule package paths oversteer: fix udev rule package paths Dec 13, 2024
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`
@iamtimmy
Copy link
Contributor Author

iamtimmy commented Dec 13, 2024

updated with suggested changes :)

@philiptaron
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 364728


x86_64-linux

✅ 1 package built:
  • oversteer

@philiptaron philiptaron merged commit ed9e882 into NixOS:master Dec 13, 2024
23 of 24 checks passed
@philiptaron
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants