mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
redshift: Fix missing "vidmode" support (#322352)
This commit is contained in:
commit
013cfc8060
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
@ -45,6 +46,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") [
|
||||
|
@ -57,6 +59,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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue