Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
993 B
Nix
56 lines
993 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
go-md2man,
|
|
coreutils,
|
|
replaceVars,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "brillo";
|
|
version = "1.4.13";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "cameronnemo";
|
|
repo = "brillo";
|
|
rev = "v${version}";
|
|
hash = "sha256-+BUyM3FFnsk87NFaD9FBwdLqf6wsNhX+FDB7nqhgAmM=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./udev-rule.patch {
|
|
inherit coreutils;
|
|
# patch context
|
|
group = null;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
go-md2man
|
|
udevCheckHook
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=$(out)"
|
|
"AADIR=$(out)/etc/apparmor.d"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
|
|
installTargets = [ "install-dist" ];
|
|
|
|
meta = with lib; {
|
|
description = "Backlight and Keyboard LED control tool";
|
|
homepage = "https://gitlab.com/cameronnemo/brillo";
|
|
mainProgram = "brillo";
|
|
license = [
|
|
licenses.gpl3Only
|
|
licenses.bsd0
|
|
];
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.alexarice ];
|
|
};
|
|
}
|