about summary refs log tree commit diff
path: root/nixpkgs/pkgs/os-specific/linux/uhk-udev-rules/default.nix
blob: bcb7799731f6039e968b715dba940b1b7fc1f6f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, stdenv, uhk-agent }:

stdenv.mkDerivation {
  pname = "uhk-udev-rules";
  inherit (uhk-agent) version;

  dontUnpack = true;
  dontBuild = true;
  installPhase = ''
    runHook preInstall
    install -D -m 644 ${uhk-agent.out}/rules/50-uhk60.rules $out/lib/udev/rules.d/50-uhk60.rules
    runHook postInstall
  '';

  meta = {
    description = "udev rules for UHK keyboards from https://ultimatehackingkeyboard.com";
    inherit (uhk-agent.meta) license;
    maintainers = [ lib.maintainers.ngiger ];
  };
}