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

37 lines
726 B
Nix
Raw Permalink Normal View History

2022-04-10 11:54:58 +02:00
{
stdenv,
lib,
fetchFromGitHub,
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
licenses
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
version = "1.99.3";
in
2022-04-10 11:54:58 +02:00
stdenv.mkDerivation {
inherit version;
pname = "kaleidoscope-udev-rules";
2021-06-10 03:14:49 +02:00
2022-04-10 11:54:58 +02:00
dontBuild = true;
2021-06-10 03:14:49 +02:00
2022-04-10 11:54:58 +02:00
src = fetchFromGitHub {
owner = "keyboardio";
repo = "Kaleidoscope";
rev = "v${version}";
sha256 = "sha256-4WIl/Hj23j9GLzdMcyEQvg9X7HI4WSInrLkYCkj6yhM=";
};
2021-06-10 03:14:49 +02:00
2022-04-10 11:54:58 +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-04-10 11:54:58 +02:00
meta = {
description = "udev rules for kaleidoscope firmware keyboards";
homepage = "https://github.com/keyboardio/Kaleidoscope";
license = licenses.gpl3Only;
};
}