Files
nixpkgs/pkgs/by-name/ac/acpilight/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
999 B
Nix

{
lib,
stdenv,
fetchgit,
python3,
coreutils,
udevCheckHook,
}:
stdenv.mkDerivation rec {
pname = "acpilight";
version = "1.2";
src = fetchgit {
url = "https://gitlab.com/wavexx/acpilight.git";
tag = "v${version}";
sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
};
pyenv = python3.withPackages (
pythonPackages: with pythonPackages; [
configargparse
]
);
postConfigure = ''
substituteInPlace 90-backlight.rules --replace /bin ${coreutils}/bin
substituteInPlace Makefile --replace udevadm true
'';
buildInputs = [ pyenv ];
makeFlags = [ "DESTDIR=$(out) prefix=" ];
nativeBuildInputs = [
udevCheckHook
];
doInstallCheck = true;
meta = {
homepage = "https://gitlab.com/wavexx/acpilight";
description = "ACPI backlight control";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ smakarov ];
platforms = lib.platforms.linux;
mainProgram = "xbacklight";
};
}