nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

clightd: Add Yoctolight option

The clightd package supports/enables all the available build options except for
Yoctolight support. Yoctolight support requires no additional dependencies as
libusb is already a dep. This enables Yoctolight support so that the package can
be used on desktop systems with a Yoctolight module as the ALS.

+7 -5
+7 -5
pkgs/applications/misc/clight/clightd.nix
··· 5 5 , enableDdc ? true, ddcutil 6 6 , enableDpms ? true, libXext 7 7 , enableGamma ? true, libdrm, libXrandr, wayland 8 - , enableScreen ? true }: 8 + , enableScreen ? true 9 + , enableYoctolight ? true }: 9 10 10 11 stdenv.mkDerivation rec { 11 12 pname = "clightd"; ··· 34 33 "-DDBUS_CONFIG_DIR=${placeholder "out"}/etc/dbus-1/system.d" 35 34 # systemd.pc has prefix=${systemd.out} 36 35 "-DMODULE_LOAD_DIR=${placeholder "out"}/lib/modules-load.d" 37 - ] ++ optional enableDdc "-DENABLE_DDC=1" 38 - ++ optional enableDpms "-DENABLE_DPMS=1" 39 - ++ optional enableGamma "-DENABLE_GAMMA=1" 40 - ++ optional enableScreen "-DENABLE_SCREEN=1"; 36 + ] ++ optional enableDdc "-DENABLE_DDC=1" 37 + ++ optional enableDpms "-DENABLE_DPMS=1" 38 + ++ optional enableGamma "-DENABLE_GAMMA=1" 39 + ++ optional enableScreen "-DENABLE_SCREEN=1" 40 + ++ optional enableYoctolight "-DENABLE_YOCTOLIGHT=1"; 41 41 42 42 nativeBuildInputs = [ 43 43 dbus