mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
29 lines
748 B
Nix
29 lines
748 B
Nix
{ stdenv, fetchFromGitHub, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "brightnessctl-${version}";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Hummer12007";
|
|
repo = "brightnessctl";
|
|
rev = "${version}";
|
|
sha256 = "1n1gb8ldgqv3vs565yhk1w4jfvrviczp94r8wqlkv5q6ab43c8w9";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace 90-brightnessctl.rules --replace /bin/ ${coreutils}/bin/
|
|
'';
|
|
|
|
meta = with stdenv.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;
|
|
};
|
|
|
|
}
|