Skip to content

Conversation

reivilibre
Copy link
Contributor

@reivilibre reivilibre commented Jan 11, 2025

In this PR, I add a package with the udev rules for probe-rs, a tool for controlling USB debug probes from various vendors. Website: https://probe.rs

Since an old version of these rules was actually already present in nixpkgs (unbeknownst to me when I started) under the name picoprobe-udev-rules, I decided to remove that and add a 'rename' alias so that any current users of the Pico are not broken.
I'm not ultimately sure if this was the right thing to do, but it seemed better than having two packages with the same contents, or one with the wrong name.

cc. @MGlolenstine I don't know if you have thoughts on this or would want to be a maintainer of the package still? Since now it is no longer just aimed as specific to the Pico, it might be broader than what you intended to support as a package maintainer.
I am happy to do either way.

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.

Signed-off-by: Olivier 'reivilibre <git.contact@librepush.net>
Signed-off-by: Olivier 'reivilibre <git.contact@librepush.net>
Signed-off-by: Olivier 'reivilibre <git.contact@librepush.net>
@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Jan 11, 2025
@MGlolenstine
Copy link
Member

Hi,

I'm glad to hear that this package is being updated or improved, it was just a quick hack from my side, so I'm really glad it got an overhaul.

I sadly haven't had much time for updating my packages and maintaining them, so I'm glad there's now a nice alternative.

@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 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 11, 2025
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Mar 16, 2025
@nixpkgs-ci nixpkgs-ci bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Jul 5, 2025
runHook postInstall
'';

meta = with lib; {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
meta = with lib; {
meta = {

with lib; is outdate


src = fetchurl {
url = "https://github.com/probe-rs/webpage/raw/c8dbcf00cef641117578aa3eccd26541b0e259f6/src/static/files/69-probe-rs.rules";
sha256 = "sha256-SdwESnOuvOKMsTvxyA5c4UwtcS3kU33SlNttepMm7HY=";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sha256 = "sha256-SdwESnOuvOKMsTvxyA5c4UwtcS3kU33SlNttepMm7HY=";
hash = "sha256-SdwESnOuvOKMsTvxyA5c4UwtcS3kU33SlNttepMm7HY=";

use hash for sri hash

@nixpkgs-ci nixpkgs-ci bot removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: merge conflict This PR has merge conflicts with the target branch 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants