diff options
author | Hannu Hartikainen <hannu.hartikainen@gmail.com> | 2017-01-25 18:25:36 +0200 |
---|---|---|
committer | Hannu Hartikainen <hannu.hartikainen@gmail.com> | 2017-02-04 20:22:51 +0200 |
commit | d91b39b3f966cde10058d43ccc226e934b3c5e80 (patch) | |
tree | 4a2b9c23ef5dcd0f9915bd7f74a0440ca0835181 /pkgs/tools/system/illum | |
parent | 9e299acf873285e30008588ac3e21cda12f865fb (diff) | |
download | nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar.gz nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar.bz2 nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar.lz nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar.xz nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.tar.zst nixlib-d91b39b3f966cde10058d43ccc226e934b3c5e80.zip |
illum: init at 0.4
Diffstat (limited to 'pkgs/tools/system/illum')
-rw-r--r-- | pkgs/tools/system/illum/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/system/illum/default.nix b/pkgs/tools/system/illum/default.nix new file mode 100644 index 000000000000..4cdfeec12b79 --- /dev/null +++ b/pkgs/tools/system/illum/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, pkgconfig, ninja, libevdev, libev }: + +stdenv.mkDerivation rec { + version = "0.4"; + name = "illum-${version}"; + + src = fetchgit { + url = "https://github.com/jmesmon/illum.git"; + fetchSubmodules = true; + rev = "48ce8631346b1c88a901a8e4fa5fa7e8ffe8e418"; + sha256 = "05v3hz7n6b1mlhc6zqijblh1vpl0ja1y8y0lafw7mjdz03wxhfdb"; + }; + + buildInputs = [ pkgconfig ninja libevdev libev ]; + + configurePhase = '' + bash ./configure + ''; + + buildPhase = '' + ninja + ''; + + 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; + }; +} |