1 { lib, stdenv, fetchFromGitHub, fetchpatch, pkg-config, ninja, libevdev, libev, udev }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "S4lUBeRnZlRUpIxFdN/bh979xvdS7roF6/6Dk0ZUrnM=";
12 fetchSubmodules = true;
17 name = "prevent-unplug-segfault"; # See https://github.com/jmesmon/illum/issues/19
18 url = "https://github.com/jmesmon/illum/commit/47b7cd60ee892379e5d854f79db343a54ae5a3cc.patch";
19 sha256 = "sha256-hIBBCIJXAt8wnZuyKye1RiEfOCelP3+4kcGrM43vFOE=";
23 nativeBuildInputs = [ pkg-config ];
24 buildInputs = [ ninja libevdev libev udev ];
36 homepage = "https://github.com/jmesmon/illum";
37 description = "Daemon that wires button presses to screen backlight level";
38 platforms = lib.platforms.linux;
39 maintainers = [ lib.maintainers.dancek ];
40 license = lib.licenses.agpl3Plus;
41 mainProgram = "illum-d";