blob: 65b8a1fb9ec4aea9a003b37f8b141a7f6c462ffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
stdenv,
fetchpatch,
ninja,
libusb1,
meson,
boost,
fetchFromGitHub,
pkg-config,
microsoft-gsl,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ite-backlight";
version = "1.1";
src = fetchFromGitHub {
owner = "hexagonal-sun";
repo = "ite-backlight";
rev = "v${finalAttrs.version}";
sha256 = "1hany4bn93mac9qyz97r1l858d48zdvvmn3mabzr3441ivqr9j0a";
};
nativeBuildInputs = [
ninja
pkg-config
meson
microsoft-gsl
];
buildInputs = [
boost
libusb1
];
patches = [
(fetchpatch {
name = "fix-gcc13-build-failure.patch";
url = "https://github.com/hexagonal-sun/ite-backlight/commit/dc8c19d4785d80cbe7a82869daee1f723d3f3fb2.patch";
hash = "sha256-iTRTVy7qB2z1ip135b8k3RufTBzeJaP1wdrRWN9tPsU=";
})
];
meta = {
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 = lib.licenses.mit;
homepage = "https://github.com/hexagonal-sun/ite-backlight";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ hexagonal-sun ];
};
})
|