probe-rs-tools: add udev rules (#476735)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user