3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/brightnessctl/default.nix

28 lines
727 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, pkg-config, systemd }:
stdenv.mkDerivation rec {
pname = "brightnessctl";
2020-02-06 05:21:26 +00:00
version = "0.5.1";
src = fetchFromGitHub {
owner = "Hummer12007";
repo = "brightnessctl";
2019-09-09 00:38:31 +01:00
rev = version;
2020-02-06 05:21:26 +00:00
sha256 = "0immxc7almmpg80n3bdn834p3nrrz7bspl2syhb04s3lawa5y2lq";
};
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" "ENABLE_SYSTEMD=1" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ systemd ];
meta = with lib; {
homepage = "https://github.com/Hummer12007/brightnessctl";
description = "This program allows you read and control device brightness";
license = licenses.mit;
maintainers = with maintainers; [ megheaiulian ];
platforms = platforms.linux;
};
}