@@ -0,0 +1,36 @@
1+{ stdenv, fetchgit, pkgconfig, ninja, libevdev, libev }:
2+
3+stdenv.mkDerivation rec {
4+ version = "0.4";
5+ name = "illum-${version}";
6+
7+ src = fetchgit {
8+ url = "https://github.com/jmesmon/illum.git";
9+ fetchSubmodules = true;
10+ rev = "48ce8631346b1c88a901a8e4fa5fa7e8ffe8e418";
11+ sha256 = "05v3hz7n6b1mlhc6zqijblh1vpl0ja1y8y0lafw7mjdz03wxhfdb";
12+ };
13+
14+ buildInputs = [ pkgconfig ninja libevdev libev ];
15+
16+ configurePhase = ''
17+ bash ./configure
18+ '';
19+
20+ buildPhase = ''
21+ ninja
22+ '';
23+
24+ installPhase = ''
25+ mkdir -p $out/bin
26+ mv illum-d $out/bin
27+ '';
28+
29+ meta = {
30+ homepage = https://github.com/jmesmon/illum;
31+ description = "Daemon that wires button presses to screen backlight level";
32+ platforms = stdenv.lib.platforms.linux;
33+ maintainers = [ stdenv.lib.maintainers.dancek ];
34+ license = stdenv.lib.licenses.agpl3;
35+ };
36+}