probe-rs-tools: add udev rules

Co-authored-by: Alex Martens <7845120+newAM@users.noreply.github.com>
This commit is contained in:
Guilhem Saurel
2026-01-06 21:23:17 +01:00
co-authored by Alex Martens
parent 1b67e3ce74
commit 6ae9c13dfc
@@ -2,12 +2,20 @@
lib,
rustPlatform,
fetchFromGitHub,
fetchurl,
cmake,
pkg-config,
libusb1,
openssl,
}:
let
# udev rules are in another unversioned repo
udevRules = fetchurl {
url = "https://raw.githubusercontent.com/probe-rs/webpage/054a0b16831593091a8a5624d0e2305573e860ee/public/files/69-probe-rs.rules";
hash = "sha256-yjxld5ebm2jpfyzkw+vngBfHu5Nfh2ioLUKQQDY4KYo=";
};
in
rustPlatform.buildRustPackage rec {
pname = "probe-rs-tools";
version = "0.30.0";
@@ -35,6 +43,10 @@ rustPlatform.buildRustPackage rec {
openssl
];
postInstall = ''
install -D -m 444 ${udevRules} $out/etc/udev/rules.d/69-probe-rs.rules
'';
checkFlags = [
# require a physical probe
"--skip=cmd::dap_server::server::debugger::test::attach_request"