nixos-config/modules/base/qmk/default.nix

29 lines
566 B
Nix
Raw Normal View History

2023-01-06 01:10:01 +01:00
{ lib, stdenv, ... }:
let
pname = "qmk-udev-rules";
version = "0.19.6";
in
stdenv.mkDerivation {
inherit pname version;
src = ./.;
phases = [ "installPhase" ];
installPhase = ''
install -D $src/50-qmk.rules $out/lib/udev/rules.d/50-qmk.rules
'';
meta = with lib; {
description = "udev rules for QMK based keyboards";
homepage = "https://qmk.fm";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [{
email = "erwin@datarift.nl";
github = "eboskma";
name = "Erwin Boskma";
}];
};
}