1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/misc/brightnessctl/default.nix
Sefa Eyeoglu 112c8c3b11
brightnessctl: set mainProgram
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2023-08-04 14:55:12 +02:00

29 lines
762 B
Nix

{ lib, 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 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;
mainProgram = "brightnessctl";
};
}