14 src = fetchFromGitLab {
17 rev = "2a54078cbe3814105ee4f565f451b1b5947fbde0";
18 hash = "sha256-OmHdVJvBcBjJiPs45JqOHxFoJYvKIEIpt9pFhBz74Kg=";
21 configureFlags = [ "--with-udev" ];
23 nativeBuildInputs = [ autoreconfHook ];
26 ./0001-define-light-loglevel-as-extern.patch
29 # ensure udev rules can find the commands used
31 substituteInPlace 90-backlight.rules \
32 --replace-fail '/bin/chgrp' '${coreutils}/bin/chgrp' \
33 --replace-fail '/bin/chmod' '${coreutils}/bin/chmod'
37 description = "GNU/Linux application to control backlights";
38 homepage = "https://gitlab.com/dpeukert/light";
39 license = lib.licenses.gpl3Only;
40 mainProgram = "light";
41 maintainers = with lib.maintainers; [
45 platforms = lib.platforms.linux;