2022-05-18 14:49:53 +00:00
|
|
|
{ lib, stdenv, uhk-agent }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "uhk-udev-rules";
|
|
|
|
inherit (uhk-agent) version;
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2023-11-16 04:20:00 +00:00
|
|
|
install -D -m 644 ${uhk-agent.out}/opt/uhk-agent/rules/50-uhk60.rules $out/lib/udev/rules.d/50-uhk60.rules
|
2022-05-18 14:49:53 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "udev rules for UHK keyboards from https://ultimatehackingkeyboard.com";
|
|
|
|
inherit (uhk-agent.meta) license;
|
|
|
|
maintainers = [ lib.maintainers.ngiger ];
|
|
|
|
};
|
|
|
|
}
|