1{ stdenv, fetchurl, help2man }:
2
3stdenv.mkDerivation rec {
4 version = "1.0";
5 name = "light-${version}";
6 src = fetchurl {
7 url = "https://github.com/haikarainen/light/archive/v${version}.tar.gz";
8 sha256 = "974608ee42ffe85cfd23184306d56d86ec4e6f4b0518bafcb7b3330998b1af64";
9 };
10 buildInputs = [ help2man ];
11
12 installPhase = "mkdir -p $out/bin; cp light $out/bin/";
13
14 preFixup = "make man; mkdir -p $out/man/man1; mv light.1.gz $out/man/man1";
15
16 meta = {
17 description = "GNU/Linux application to control backlights";
18 homepage = https://haikarainen.github.io/light/;
19 license = stdenv.lib.licenses.gpl3;
20 maintainers = with stdenv.lib.maintainers; [ puffnfresh ];
21 platforms = stdenv.lib.platforms.linux;
22 };
23}