mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
5282bc9a74
Due to the support of the systemd-logind API the udev rules aren't required anymore which renders this module useless [0]. Note: brightnessctl should now require a working D-Bus setup and a valid local logind session for this to work. [0]: https://github.com/NixOS/nixpkgs/pull/79663
28 lines
729 B
Nix
28 lines
729 B
Nix
{ stdenv, fetchFromGitHub, pkg-config, systemd }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "brightnessctl";
|
|
version = "0.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Hummer12007";
|
|
repo = "brightnessctl";
|
|
rev = version;
|
|
sha256 = "0immxc7almmpg80n3bdn834p3nrrz7bspl2syhb04s3lawa5y2lq";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=" "DESTDIR=$(out)" "ENABLE_SYSTEMD=1" ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ systemd ];
|
|
|
|
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;
|
|
};
|
|
|
|
}
|