1 { lib, stdenv, fetchFromGitHub, pkg-config, systemd }:
3 stdenv.mkDerivation rec {
4 pname = "brightnessctl";
7 src = fetchFromGitHub {
9 repo = "brightnessctl";
11 sha256 = "0immxc7almmpg80n3bdn834p3nrrz7bspl2syhb04s3lawa5y2lq";
14 makeFlags = [ "PREFIX=" "DESTDIR=$(out)" "ENABLE_SYSTEMD=1" ];
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ systemd ];
20 homepage = "https://github.com/Hummer12007/brightnessctl";
21 description = "This program allows you read and control device brightness";
22 license = licenses.mit;
23 maintainers = with maintainers; [ megheaiulian ];
24 platforms = platforms.linux;