summary refs log tree commit diff
path: root/pkgs/os-specific/linux/wooting-udev-rules/default.nix
blob: f1ae20692353156c7721de242fbf19023fe2dd15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, 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 ];

  dontUnpack = true;

  installPhase = ''
    install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
  '';

  meta = with 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 ];
  };
}