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