@@ -0,0 +1,33 @@
1+{ stdenv, fetchgit, libX11, libXScrnSaver, libXext, glib, dbus, pkgconfig, systemd }:
2+
3+stdenv.mkDerivation {
4+ name = "lightum";
5+ src = fetchgit {
6+ url = https://github.com/poliva/lightum;
7+ rev = "123e6babe0669b23d4c1dfa5511088608ff2baa8";
8+ sha256 = "1r8c9mb82qgs8i7dczqx8fc7xrbn413b59xkqgjh4z1pfy75sl79";
9+ };
10+
11+ buildInputs = [
12+ dbus
13+ glib
14+ libX11
15+ libXScrnSaver
16+ libXext
17+ pkgconfig
18+ systemd
19+ ];
20+
21+ installPhase = ''
22+ make install prefix=$out bindir=$out/bin docdir=$out/share/doc \
23+ mandir=$out/share/man INSTALL="install -c" INSTALLDATA="install -c -m 644"
24+ '';
25+
26+ meta = {
27+ description = "MacBook automatic light sensor daemon";
28+ homepage = https://github.com/poliva/lightum;
29+ license = stdenv.lib.licenses.gpl2;
30+ maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
31+ platforms = stdenv.lib.platforms.linux;
32+ };
33+}