depot/third_party/nixpkgs/pkgs/tools/system/illum/default.nix
Default email 84cb9d505d Project import generated by Copybara.
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
2021-09-23 17:35:13 +02:00

34 lines
806 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, ninja, libevdev, libev, udev }:
stdenv.mkDerivation rec {
pname = "illum";
version = "0.5";
src = fetchFromGitHub {
owner = "jmesmon";
repo = "illum";
rev = "v${version}";
sha256 = "S4lUBeRnZlRUpIxFdN/bh979xvdS7roF6/6Dk0ZUrnM=";
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ninja libevdev libev udev ];
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 = lib.platforms.linux;
maintainers = [ lib.maintainers.dancek ];
license = lib.licenses.agpl3;
};
}