blob: ef53dc1446b88a0d36c6b03eff0596c3f4ace4d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, fetchFromGitHub, coreutils }:
stdenv.mkDerivation rec {
name = "brightnessctl-${version}";
version = "0.3.2";
src = fetchFromGitHub {
owner = "Hummer12007";
repo = "brightnessctl";
rev = "${version}";
sha256 = "0amxhcikcgj04z81272kz35m5h5q4jx9x7v71h8yl1rv4b2lzh7z";
};
makeFlags = "MODE=0 PREFIX=/ DESTDIR=$(out)";
patchPhase = ''
substituteInPlace 90-brightnessctl.rules --replace /bin/ ${coreutils}/bin/
substituteInPlace 90-brightnessctl.rules --replace %k '*'
'';
meta = {
homepage = "https://github.com/Hummer12007/brightnessctl";
maintainers = [ stdenv.lib.maintainers.Dje4321 ];
license = stdenv.lib.licenses.mit;
description = "This program allows you read and control device brightness";
platforms = stdenv.lib.platforms.linux;
};
}
|