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
37 lines
907 B
Nix
37 lines
907 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "wooting-udev-rules";
|
|
version = "0-unstable-2024-11-20";
|
|
|
|
# Source: https://help.wooting.io/article/147-configuring-device-access-for-wootility-under-linux-udev-rules
|
|
src = [ ./wooting.rules ];
|
|
|
|
nativeBuildInputs = [
|
|
udevCheckHook
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase = ''
|
|
install -Dpm644 $src $out/lib/udev/rules.d/70-wooting.rules
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://help.wooting.io/article/147-configuring-device-access-for-wootility-under-linux-udev-rules";
|
|
description = "udev rules that give NixOS permission to communicate with Wooting keyboards";
|
|
platforms = platforms.linux;
|
|
# We think they are so simple that they are uncopyrightable
|
|
license = lib.licenses.publicDomain;
|
|
maintainers = with maintainers; [
|
|
returntoreality
|
|
];
|
|
};
|
|
}
|