2018-06-16 22:15:42 +00:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "brightnessctl";
|
2018-09-25 14:55:21 +00:00
|
|
|
version = "0.4";
|
2018-06-16 22:15:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Hummer12007";
|
|
|
|
repo = "brightnessctl";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2018-09-25 14:55:21 +00:00
|
|
|
sha256 = "1n1gb8ldgqv3vs565yhk1w4jfvrviczp94r8wqlkv5q6ab43c8w9";
|
2018-06-16 22:15:42 +00:00
|
|
|
};
|
|
|
|
|
2018-11-01 09:08:43 +00:00
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
2018-06-16 22:15:42 +00:00
|
|
|
|
2018-08-10 17:43:07 +00:00
|
|
|
postPatch = ''
|
2018-06-16 22:15:42 +00:00
|
|
|
substituteInPlace 90-brightnessctl.rules --replace /bin/ ${coreutils}/bin/
|
|
|
|
'';
|
|
|
|
|
2018-11-01 09:08:43 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-16 22:15:42 +00:00
|
|
|
homepage = "https://github.com/Hummer12007/brightnessctl";
|
|
|
|
description = "This program allows you read and control device brightness";
|
2018-11-01 09:08:43 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ megheaiulian ];
|
|
|
|
platforms = platforms.linux;
|
2018-06-16 22:15:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|