2017-01-25 16:25:36 +00:00
|
|
|
{ stdenv, fetchgit, pkgconfig, ninja, libevdev, libev }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2017-01-25 16:25:36 +00:00
|
|
|
version = "0.4";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "illum";
|
2017-01-25 16:25:36 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/jmesmon/illum.git";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
rev = "48ce8631346b1c88a901a8e4fa5fa7e8ffe8e418";
|
|
|
|
sha256 = "05v3hz7n6b1mlhc6zqijblh1vpl0ja1y8y0lafw7mjdz03wxhfdb";
|
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ninja libevdev libev ];
|
2017-01-25 16:25:36 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
bash ./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv illum-d $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jmesmon/illum";
|
2017-01-25 16:25:36 +00:00
|
|
|
description = "Daemon that wires button presses to screen backlight level";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.dancek ];
|
|
|
|
license = stdenv.lib.licenses.agpl3;
|
|
|
|
};
|
|
|
|
}
|