From 38a32d9ccf4fdfc081954f66cb51ef5ac6c89aac Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Sun, 18 Nov 2018 07:48:01 +0000 Subject: redshift: introduce `withGeolocation` option For simpler control. --- pkgs/applications/misc/redshift/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pkgs/applications/misc/redshift') diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix index b8c49cb02a69..2bf4a011e59b 100644 --- a/pkgs/applications/misc/redshift/default.nix +++ b/pkgs/applications/misc/redshift/default.nix @@ -2,11 +2,14 @@ , libtool, pkgconfig, wrapGAppsHook, wrapPython, gobjectIntrospection , gtk3, python, pygobject3, hicolor-icon-theme, pyxdg -, withCoreLocation ? stdenv.isDarwin, CoreLocation, Foundation, Cocoa , withQuartz ? stdenv.isDarwin, ApplicationServices , withRandr ? stdenv.isLinux, libxcb , withDrm ? stdenv.isLinux, libdrm -, withGeoclue ? stdenv.isLinux, geoclue }: + +, withGeolocation ? true +, withCoreLocation ? withGeolocation && stdenv.isDarwin, CoreLocation, Foundation, Cocoa +, withGeoclue ? withGeolocation && stdenv.isLinux, geoclue +}: stdenv.mkDerivation rec { name = "redshift-${version}"; -- cgit 1.4.1