depot/third_party/nixpkgs/pkgs/os-specific/linux/qmk-udev-rules/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

33 lines
817 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.19.11";
src = fetchFromGitHub {
owner = "qmk";
repo = "qmk_firmware";
rev = version;
hash = "sha256-RevCj+tFlleH08VGRwJjKhZdXwU6VlMsSCR9090pgRI=";
};
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 ];
};
}