Skip to content

nixos/usbmuxd: Fix incorrect pkg for udevadm#268813

Closed
amarshall wants to merge 1 commit intoNixOS:masterfrom
amarshall:usbmuxd-fix
Closed

nixos/usbmuxd: Fix incorrect pkg for udevadm#268813
amarshall wants to merge 1 commit intoNixOS:masterfrom
amarshall:usbmuxd-fix

Conversation

@amarshall
Copy link
Copy Markdown
Member

@amarshall amarshall commented Nov 20, 2023

Believe this was broken by 856d007. Not sure if this change is correct or if udev should be changed to systemdMinimal more broadly.

Description of changes

Things done

Tested my own system that was failing to start usbmuxd, with this patch succeeds.

  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Nov 20, 2023
# Trigger the udev rule manually. This doesn't require replugging the
# device when first enabling the option to get it to work
ExecStartPre = "${pkgs.udev}/bin/udevadm trigger -s usb -a idVendor=${apple}";
ExecStartPre = "${pkgs.systemdMinimal}/bin/udevadm trigger -s usb -a idVendor=${apple}";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe just systemd? Not sure which would be preferred in this context.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Nov 20, 2023
@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 23, 2023
@amarshall
Copy link
Copy Markdown
Member Author

Fixed in #268718

@amarshall amarshall closed this Nov 26, 2023
@amarshall amarshall deleted the usbmuxd-fix branch November 26, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants