nixos-config/modules/base/probe-rs/default.nix

37 lines
747 B
Nix
Raw Normal View History

{ mkDerivation
, lib
,
2022-03-15 08:30:37 +01:00
}:
mkDerivation {
pname = "probe-rs-udev-rules";
version = "20220312131009";
src = builtins.fetchurl {
url = "https://probe.rs/files/69-probe-rs.rules";
sha256 = "LkWFZVCL8h5MAd5T89CApjsjuKS2aw8OZFWFx+OrGkk=";
2022-03-15 08:30:37 +01:00
};
dontUnpack = true;
dontBuild = true;
dontConfigure = true;
installPhase = ''
mkdir -p $out/lib/udev/rules.d
cp $src $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";
};
}