nixpkgs/pkgs/tools/system/illum/default.nix

35 lines
806 B
Nix
Raw Normal View History

2021-09-22 18:14:54 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, ninja, libevdev, libev, udev }:
2017-01-25 16:25:36 +00:00
2021-09-22 18:14:54 +00:00
stdenv.mkDerivation rec {
pname = "illum";
2021-09-22 18:14:54 +00:00
version = "0.5";
2017-01-25 16:25:36 +00:00
2021-09-22 18:14:54 +00:00
src = fetchFromGitHub {
owner = "jmesmon";
repo = "illum";
rev = "v${version}";
sha256 = "S4lUBeRnZlRUpIxFdN/bh979xvdS7roF6/6Dk0ZUrnM=";
2017-01-25 16:25:36 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ pkg-config ];
2021-09-22 18:14:54 +00:00
buildInputs = [ ninja libevdev libev udev ];
2017-01-25 16:25:36 +00:00
configurePhase = ''
bash ./configure
'';
installPhase = ''
mkdir -p $out/bin
mv illum-d $out/bin
'';
meta = {
homepage = "https://github.com/jmesmon/illum";
2017-01-25 16:25:36 +00:00
description = "Daemon that wires button presses to screen backlight level";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.dancek ];
license = lib.licenses.agpl3;
2017-01-25 16:25:36 +00:00
};
}