nixos-config/pkgs/kaleidoscope-udev-rules/default.nix

34 lines
674 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub }:
2021-06-10 03:14:49 +02:00
let
2022-01-11 16:08:21 +01:00
inherit (lib)
licenses
;
version = "1.99.3";
in
stdenv.mkDerivation {
inherit version;
2021-06-10 03:14:49 +02:00
pname = "kaleidoscope-udev-rules";
dontBuild = true;
src = fetchFromGitHub {
owner = "keyboardio";
repo = "Kaleidoscope";
rev = "v${version}";
sha256 = "sha256-4WIl/Hj23j9GLzdMcyEQvg9X7HI4WSInrLkYCkj6yhM=";
};
2021-06-10 03:14:49 +02:00
installPhase = ''
mkdir -p $out/lib/udev/rules.d
cp etc/60-kaleidoscope.rules $out/lib/udev/rules.d/
2021-06-10 03:14:49 +02:00
'';
2022-01-11 16:08:21 +01:00
meta = {
2021-06-10 03:14:49 +02:00
description = "udev rules for kaleidoscope firmware keyboards";
homepage = "https://github.com/keyboardio/Kaleidoscope";
license = licenses.gpl3Only;
2021-06-10 03:14:49 +02:00
};
}