2021-09-08 20:33:08 +00:00
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, stdenv
|
2024-02-08 22:59:19 +00:00
|
|
|
, fetchpatch
|
2021-09-08 20:33:08 +00:00
|
|
|
, ninja
|
|
|
|
, libusb1
|
|
|
|
, meson
|
|
|
|
, boost
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2023-05-26 10:43:45 +00:00
|
|
|
, microsoft-gsl
|
2021-09-08 20:33:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
2023-05-26 10:43:45 +00:00
|
|
|
microsoft-gsl
|
2021-09-08 20:33:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
libusb1
|
|
|
|
];
|
|
|
|
|
2024-02-08 22:59:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-gcc13-build-failure.patch";
|
|
|
|
url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch";
|
|
|
|
hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-09-08 20:33:08 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|