depot/third_party/nixpkgs/pkgs/os-specific/linux/uhk-udev-rules/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

20 lines
516 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}/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 ];
};
}