2021-09-26 12:46:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
## Usage
|
2024-01-13 08:15:51 +00:00
|
|
|
# In NixOS, set hardware.keyboard.qmk.enable = true;
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qmk-udev-rules";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.23.3";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qmk";
|
|
|
|
repo = "qmk_firmware";
|
|
|
|
rev = version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-dFc6S9x7sBYZAQn0coZJpmGz66Fx0l4rrexjyB4k0zA=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D util/udev/50-qmk.rules $out/lib/udev/rules.d/50-qmk.rules
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/qmk/qmk_firmware";
|
|
|
|
description = "Official QMK udev rules list";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ ekleog ];
|
|
|
|
};
|
|
|
|
}
|