summaryrefslogtreecommitdiffstats
path: root/pkgs/misc/ite-backlight
diff options
context:
space:
mode:
authorMatthew Leach <matthew@mattleach.net>2021-09-08 21:33:08 +0100
committerCole Helbling <cole.e.helbling@outlook.com>2022-01-05 12:33:50 -0800
commitcba86feaaf71e3cf450bfb90cb08ed42347504f6 (patch)
tree141fd54e681455dff11faf0bcbba355c3ed6903c /pkgs/misc/ite-backlight
parentb7018f38133c417e0f049a9465d08668d4661849 (diff)
ite-backlight: init at v1.1
Diffstat (limited to 'pkgs/misc/ite-backlight')
-rw-r--r--pkgs/misc/ite-backlight/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/misc/ite-backlight/default.nix b/pkgs/misc/ite-backlight/default.nix
new file mode 100644
index 000000000000..033ff0f2055d
--- /dev/null
+++ b/pkgs/misc/ite-backlight/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, pkgs
+, stdenv
+, ninja
+, libusb1
+, meson
+, boost
+, fetchFromGitHub
+, pkg-config
+, microsoft_gsl
+}:
+
+stdenv.mkDerivation rec {
+ pname = "ite-backlight";
+ version = "1.1";
+
+ src = fetchFromGitHub {
+ owner = "hexagonal-sun";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1hany4bn93mac9qyz97r1l858d48zdvvmn3mabzr3441ivqr9j0a";
+ };
+
+ nativeBuildInputs = [
+ ninja
+ pkg-config
+ meson
+ microsoft_gsl
+ ];
+
+ buildInputs = [
+ boost
+ libusb1
+ ];
+
+ meta = with lib; {
+ description = "Commands to control ite-backlight devices";
+ longDescription = ''
+ This project aims to provide a set of simple utilities for controlling ITE 8291
+ keyboard backlight controllers.
+ '';
+ license = with licenses; [ mit ];
+ homepage = "https://github.com/hexagonal-sun/ite-backlight";
+ platforms = platforms.linux;
+ maintainers = with maintainers; [ hexagonal-sun ];
+ };
+}