usb-blaster-udev-rules: init

This commit is contained in:
João Capucho 2022-01-26 11:10:10 +00:00
parent 87d9bb9544
commit ba9b26144e
No known key found for this signature in database
GPG key ID: AC819B0B6F3B24A2
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ 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;
};
}

View file

@ -0,0 +1,8 @@
# USB-Blaster
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", TAG+="uaccess"
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6002", TAG+="uaccess"
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6003", TAG+="uaccess"
# USB-Blaster II
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6010", TAG+="uaccess"
ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6810", TAG+="uaccess"

View file

@ -34424,6 +34424,8 @@ with pkgs;
quartus-prime-lite = callPackage ../applications/editors/quartus-prime {};
usb-blaster-udev-rules = callPackage ../os-specific/linux/usb-blaster-udev-rules {};
go-license-detector = callPackage ../development/tools/misc/go-license-detector { };
hashdeep = callPackage ../tools/security/hashdeep { };