From aca603a8e4dae1f448815dcd3ba48c27a2767a49 Mon Sep 17 00:00:00 2001 From: Vladimir Panteleev Date: Tue, 25 Jun 2024 09:27:57 +0000 Subject: [PATCH] redshift: Fix missing "vidmode" support Fixes "-m vidmode". --- pkgs/applications/misc/redshift/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix index 70d30ea054e6..9cd8a6b28152 100644 --- a/pkgs/applications/misc/redshift/default.nix +++ b/pkgs/applications/misc/redshift/default.nix @@ -6,6 +6,7 @@ , withQuartz ? stdenv.isDarwin, ApplicationServices , withRandr ? stdenv.isLinux, libxcb , withDrm ? stdenv.isLinux, libdrm +, withVidmode ? stdenv.isLinux, libXxf86vm , withGeolocation ? true , withCoreLocation ? withGeolocation && stdenv.isDarwin, CoreLocation, Foundation, Cocoa @@ -40,6 +41,7 @@ let "--enable-randr=${if withRandr then "yes" else "no"}" "--enable-geoclue2=${if withGeoclue then "yes" else "no"}" "--enable-drm=${if withDrm then "yes" else "no"}" + "--enable-vidmode=${if withVidmode then "yes" else "no"}" "--enable-quartz=${if withQuartz then "yes" else "no"}" "--enable-corelocation=${if withCoreLocation then "yes" else "no"}" ] ++ lib.optionals (pname == "gammastep") [ @@ -53,6 +55,7 @@ let ] ++ lib.optional withRandr libxcb ++ lib.optional withGeoclue geoclue ++ lib.optional withDrm libdrm + ++ lib.optional withVidmode libXxf86vm ++ lib.optional withQuartz ApplicationServices ++ lib.optionals withCoreLocation [ CoreLocation Foundation Cocoa ] ++ lib.optional withAppIndicator (if (pname != "gammastep")