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

36 lines
747 B
Nix

{ mkDerivation
, lib
,
}:
mkDerivation {
pname = "probe-rs-udev-rules";
version = "20220312131009";
src = builtins.fetchurl {
url = "https://probe.rs/files/69-probe-rs.rules";
sha256 = "1dLTJ0S5Fxs0y3yme7blGqUG8RwQj/BkZV8PIrmX5gI=";
};
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";
};
}