depot/third_party/nixpkgs/pkgs/tools/system/illum/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
835 B
Nix

{ stdenv, fetchgit, pkgconfig, ninja, libevdev, libev }:
stdenv.mkDerivation {
version = "0.4";
pname = "illum";
src = fetchgit {
url = "https://github.com/jmesmon/illum.git";
fetchSubmodules = true;
rev = "48ce8631346b1c88a901a8e4fa5fa7e8ffe8e418";
sha256 = "05v3hz7n6b1mlhc6zqijblh1vpl0ja1y8y0lafw7mjdz03wxhfdb";
};
nativeBuildInputs = [ pkgconfig ];
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";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.dancek ];
license = stdenv.lib.licenses.agpl3;
};
}