nixpkgs/pkgs/os-specific/linux/qmk-udev-rules/default.nix
2023-10-18 01:31:12 +00:00

34 lines
816 B
Nix

{ lib, stdenv, fetchFromGitHub }:
## Usage
# In NixOS, simply add this package to services.udev.packages:
# services.udev.packages = [ pkgs.qmk-udev-rules ];
stdenv.mkDerivation rec {
pname = "qmk-udev-rules";
version = "0.22.3";
src = fetchFromGitHub {
owner = "qmk";
repo = "qmk_firmware";
rev = version;
hash = "sha256-HLQxmBlzTdsOAMqfc4taoMM+V2G5novMsbc1drZlNGg=";
};
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 ];
};
}