2024-02-05 12:36:00 +01:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2022-03-15 08:30:37 +01:00
|
|
|
pname = "probe-rs-udev-rules";
|
2024-02-05 12:36:00 +01:00
|
|
|
version = "20240203071125";
|
2022-03-15 08:30:37 +01:00
|
|
|
|
2024-02-05 12:36:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "probe-rs";
|
|
|
|
repo = "webpage";
|
2024-07-09 21:32:01 +02:00
|
|
|
rev = "036428893607f00cb867e59ac4ad5f7bacda3f4b";
|
|
|
|
hash = "sha256-y/MzhewloQmACimQ86x3kxkZIaKuQK1TDnBn+MGBz/w=";
|
2022-03-15 08:30:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/udev/rules.d
|
2024-02-05 12:36:00 +01:00
|
|
|
cp $src/src/static/files/69-probe-rs.rules $out/lib/udev/rules.d/69-probe-rs.rules
|
2022-03-15 08:30:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|