2016-11-06 03:47:22 +01:00
|
|
|
{ stdenv, fetchurl, help2man }:
|
2014-11-10 03:32:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-06 03:47:22 +01:00
|
|
|
version = "1.0";
|
2014-11-10 03:32:11 +01:00
|
|
|
name = "light-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/haikarainen/light/archive/v${version}.tar.gz";
|
2016-11-06 03:47:22 +01:00
|
|
|
sha256 = "974608ee42ffe85cfd23184306d56d86ec4e6f4b0518bafcb7b3330998b1af64";
|
2014-11-10 03:32:11 +01:00
|
|
|
};
|
2016-11-06 03:47:22 +01:00
|
|
|
buildInputs = [ help2man ];
|
2014-11-10 03:32:11 +01:00
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin; cp light $out/bin/";
|
|
|
|
|
2016-11-06 03:47:22 +01:00
|
|
|
preFixup = "make man; mkdir -p $out/man/man1; mv light.1.gz $out/man/man1";
|
|
|
|
|
2014-11-10 03:32:11 +01:00
|
|
|
meta = {
|
|
|
|
description = "GNU/Linux application to control backlights";
|
|
|
|
homepage = https://haikarainen.github.io/light/;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|