mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
fccabaf397
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/brightnessctl/versions
31 lines
882 B
Nix
31 lines
882 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 = [ "MODE=0755" "PREFIX=" "DESTDIR=$(out)" ];
|
|
installTargets = [ "install" "install_udev_rules" ];
|
|
|
|
postPatch = ''
|
|
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;
|
|
};
|
|
|
|
}
|