84cb9d505d
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
34 lines
806 B
Nix
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;
|
|
};
|
|
}
|