nixos-config/modules/base/probe-rs/default.nix
Erwin Boskma 1bd05aaa4f
Some checks failed
/ check (push) Failing after 19m14s
base(probe-rs): Get udev rules from GitHub
2024-02-05 12:36:00 +01:00

38 lines
827 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "probe-rs-udev-rules";
version = "20240203071125";
src = fetchFromGitHub {
owner = "probe-rs";
repo = "webpage";
rev = "b0e0d281572b2415db5f51a2951207503e51173d";
sha256 = "a/ugBQlSAZ6WE7ysFjPsdoPlH+3aZeechHA+NJsBOH4=";
};
dontBuild = true;
dontConfigure = true;
installPhase = ''
mkdir -p $out/lib/udev/rules.d
cp $src/src/static/files/69-probe-rs.rules $out/lib/udev/rules.d/69-probe-rs.rules
'';
meta = with lib; {
description = "udev rules for probe.rs";
license = licenses.gpl2Only;
maintainers = [
{
email = "erwin@datarift.nl";
github = "eboskma";
name = "Erwin Boskma";
}
];
platforms = platforms.linux;
homepage = "https://probe.rs";
};
}