1 { lib, stdenv, fetchFromGitHub, cmake, libusb1, ncurses5 }:
3 stdenv.mkDerivation rec {
4 pname = "lguf-brightness";
6 version = "unstable-2018-02-11";
8 src = fetchFromGitHub {
11 rev = "fcb2bc1738d55c83b6395c24edc27267a520a725";
12 sha256 = "0cf7cn2kpmlvz00qxqj1m5zxmh7i2x75djbj4wqk7if7a0nlrd5m";
15 nativeBuildInputs = [ cmake ];
17 buildInputs = [ libusb1 ncurses5 ];
20 install -D lguf_brightness $out/bin/lguf_brightness
24 description = "Adjust brightness for LG UltraFine 4K display (cross platform)";
25 homepage = "https://github.com/periklis/lguf-brightness";
26 license = licenses.lgpl21Plus;
27 maintainers = with maintainers; [ periklis ];
28 mainProgram = "lguf_brightness";
29 platforms = with platforms; linux ++ darwin;