pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / misc / ite-backlight / default.nix
blob9660ad613be1dbe4ee56f4bf1c4f744b16828a13
1 { lib
2 , stdenv
3 , fetchpatch
4 , ninja
5 , libusb1
6 , meson
7 , boost
8 , fetchFromGitHub
9 , pkg-config
10 , microsoft-gsl
13 stdenv.mkDerivation rec {
14   pname = "ite-backlight";
15   version = "1.1";
17   src = fetchFromGitHub {
18     owner = "hexagonal-sun";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "1hany4bn93mac9qyz97r1l858d48zdvvmn3mabzr3441ivqr9j0a";
22   };
24   nativeBuildInputs = [
25     ninja
26     pkg-config
27     meson
28     microsoft-gsl
29   ];
31   buildInputs = [
32     boost
33     libusb1
34   ];
36   patches = [
37     (fetchpatch {
38       name = "fix-gcc13-build-failure.patch";
39       url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch";
40       hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU=";
41     })
42   ];
44   meta = with lib; {
45     description = "Commands to control ite-backlight devices";
46     longDescription = ''
47       This project aims to provide a set of simple utilities for controlling ITE 8291
48       keyboard backlight controllers.
49     '';
50     license = with licenses; [ mit ];
51     homepage = "https://github.com/hexagonal-sun/ite-backlight";
52     platforms = platforms.linux;
53     maintainers = with maintainers; [ hexagonal-sun ];
54   };