1 { lib, stdenv, fetchgit, python3, coreutils }:
3 stdenv.mkDerivation rec {
8 url = "https://gitlab.com/wavexx/acpilight.git";
10 sha256 = "1r0r3nx6x6vkpal6vci0zaa1n9dfacypldf6k8fxg7919vzxdn1w";
13 pyenv = python3.withPackages (pythonPackages: with pythonPackages; [
18 substituteInPlace 90-backlight.rules --replace /bin ${coreutils}/bin
19 substituteInPlace Makefile --replace udevadm true
22 buildInputs = [ pyenv ];
24 makeFlags = [ "DESTDIR=$(out) prefix=" ];
27 homepage = "https://gitlab.com/wavexx/acpilight";
28 description = "ACPI backlight control";
29 license = licenses.gpl3;
30 maintainers = with maintainers; [ smakarov ];
31 platforms = platforms.linux;
32 mainProgram = "xbacklight";