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