usb-blaster-udev-rules: init
This commit is contained in:
parent
87d9bb9544
commit
ba9b26144e
26
pkgs/os-specific/linux/usb-blaster-udev-rules/default.nix
Normal file
26
pkgs/os-specific/linux/usb-blaster-udev-rules/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"
|
|
@ -34424,6 +34424,8 @@ with pkgs;
|
||||||
|
|
||||||
quartus-prime-lite = callPackage ../applications/editors/quartus-prime {};
|
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 { };
|
go-license-detector = callPackage ../development/tools/misc/go-license-detector { };
|
||||||
|
|
||||||
hashdeep = callPackage ../tools/security/hashdeep { };
|
hashdeep = callPackage ../tools/security/hashdeep { };
|
||||||
|
|
Loading…
Reference in a new issue