~ruther/nix-fpga

ref: 657f7298a01b67041204aea5496e1947a76e64c7 nix-fpga/pkgs/xilinx/vivado/udev.nix -rw-r--r-- 889 bytes
657f7298 — Rutherther feat: add executables to fhs package, split to individual frameworks 1 year, 19 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs }:

pkgs.writeTextFile {
  name = "vivado-udev-rules";
  destination = "/etc/udev/rules.d/10-xilinx-vivado.rules";
  text = ''
    # xilinx-ftdi-usb.rules
    ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Xilinx", MODE:="666"

    # xilinx-digilent-usb.rules
    ATTR{idVendor}=="1443", MODE:="666"
    ACTION=="add", ATTR{idVendor}=="0403", ATTR{manufacturer}=="Digilent", MODE:="666"

    # xilinx-pcusb.rules
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="0008", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="0007", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="0009", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="000d", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="000f", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="0013", MODE="666"
    ATTR{idVendor}=="03fd", ATTR{idProduct}=="0015", MODE="666"
  '';
}
Do not follow this link