Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
855 B
Nix
46 lines
855 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
## Usage
|
|
# In NixOS, set hardware.keyboard.qmk.enable = true;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qmk-udev-rules";
|
|
version = "0.27.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qmk";
|
|
repo = "qmk_firmware";
|
|
tag = version;
|
|
hash = "sha256-Zs508OQ0RYCg0f9wqR+VXUmVvhP/jCA3piwRq2ZpR84=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
nativeBuildInputs = [
|
|
udevCheckHook
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D util/udev/50-qmk.rules $out/lib/udev/rules.d/50-qmk.rules
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/qmk/qmk_firmware";
|
|
description = "Official QMK udev rules list";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ ekleog ];
|
|
};
|
|
}
|