2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
20 lines
530 B
Nix
20 lines
530 B
Nix
{ 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}/opt/uhk-agent/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 ];
|
|
};
|
|
}
|