wooting-udev-rules: init at 20190601

Signed-off-by: David Wood <david.wood@codeplay.com>

Changed files
+34
pkgs
os-specific
linux
wooting-udev-rules
top-level
+23
pkgs/os-specific/linux/wooting-udev-rules/default.nix
···
+
{ stdenv }:
+
+
stdenv.mkDerivation rec {
+
pname = "wooting-udev-rules";
+
version = "20190601";
+
+
# Source: https://wooting.helpscoutdocs.com/article/68-wootility-configuring-device-access-for-wootility-under-linux-udev-rules
+
src = [ ./wooting.rules ];
+
+
unpackPhase = ":";
+
+
installPhase = ''
+
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
+
'';
+
+
meta = with stdenv.lib; {
+
homepage = https://wooting.helpscoutdocs.com/article/34-linux-udev-rules;
+
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
+
platforms = platforms.linux;
+
license = "unknown";
+
maintainers = with maintainers; [ davidtwco ];
+
};
+
}
+9
pkgs/os-specific/linux/wooting-udev-rules/wooting.rules
···
+
# Wooting One
+
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff01", MODE:="0660", GROUP="input"
+
# Wooting One update mode
+
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2402", MODE:="0660", GROUP="input"
+
+
# Wooting Two
+
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="ff02", MODE:="0660", GROUP="input"
+
# Wooting Two update mode
+
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2403", MODE:="0660", GROUP="input"
+2
pkgs/top-level/all-packages.nix
···
wirelesstools = callPackage ../os-specific/linux/wireless-tools { };
+
wooting-udev-rules = callPackage ../os-specific/linux/wooting-udev-rules { };
+
wpa_supplicant = callPackage ../os-specific/linux/wpa_supplicant { };
wpa_supplicant_gui = libsForQt5.callPackage ../os-specific/linux/wpa_supplicant/gui.nix { };