diff options
author | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2019-02-07 18:23:39 +0100 |
---|---|---|
committer | Periklis Tsirakidis <periklis.tsirakidis@holidaycheck.com> | 2019-02-08 15:54:11 +0100 |
commit | e7388fedc46cd4765aef886e6040dd9f0df1aa8c (patch) | |
tree | 0317bb9cfc92f921b7d8ab7c9e3c3e38580e4d29 /pkgs/misc/lguf-brightness/default.nix | |
parent | fec445d9ba55508754355f0e46d5e7907d1dd4f1 (diff) |
lguf-brightness: Init at unstable-2018-02-07
Diffstat (limited to 'pkgs/misc/lguf-brightness/default.nix')
-rw-r--r-- | pkgs/misc/lguf-brightness/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/misc/lguf-brightness/default.nix b/pkgs/misc/lguf-brightness/default.nix new file mode 100644 index 0000000000000..180aa9cbe766a --- /dev/null +++ b/pkgs/misc/lguf-brightness/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, cmake, libusb1, ncurses5 }: + +stdenv.mkDerivation rec { + pname = "lguf-brightness"; + + version = "unstable-2018-02-07"; + + src = fetchFromGitHub { + owner = "periklis"; + repo = pname; + rev = "d194272b7a0374b27f036cbc1a9be7f231d40cbb"; + sha256 = "0zj81bqchms9m7rik1jxp6zylh9dxqzr7krlj9947v0phr4qgah4"; + }; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ libusb1 ncurses5 ]; + + installPhase = '' + install -D lguf_brightness $out/bin/lguf_brightness + ''; + + meta = with stdenv.lib; { + description = "Adjust brightness for LG UltraFine 4K display (cross platform)"; + homepage = https://github.com/periklis/lguf-brightness; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ periklis ]; + platforms = with platforms; linux ++ darwin; + }; +} |