792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
26 lines
680 B
Nix
26 lines
680 B
Nix
{ lib, stdenvNoCC }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
name = "usb-blaster-udev-rules";
|
|
|
|
udevRules = ./usb-blaster.rules;
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
install -Dm 644 "${udevRules}" "$out/lib/udev/rules.d/51-usbblaster.rules"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "udev rules that give NixOS permission to communicate with usb blasters";
|
|
longDescription = ''
|
|
udev rules that give NixOS permission to communicate with usb blasters.
|
|
To use it under NixOS, add
|
|
|
|
services.udev.packages = [ pkgs.usb-blaster-udev-rules ];
|
|
|
|
to the system configuration.
|
|
'';
|
|
license = licenses.free;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|