about summary refs log tree commit diff
path: root/pkgs/applications/misc/redshift
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-11-18 07:48:01 +0000
committerJan Malakhovski <oxij@oxij.org>2018-11-18 07:48:01 +0000
commit38a32d9ccf4fdfc081954f66cb51ef5ac6c89aac (patch)
tree5d7d9195cb190daaf72c2910b5ce6a48fe42e92f /pkgs/applications/misc/redshift
parent617132eba723b79f69d1e8cc51f675f7cccd1452 (diff)
redshift: introduce `withGeolocation` option
For simpler control.
Diffstat (limited to 'pkgs/applications/misc/redshift')
-rw-r--r--pkgs/applications/misc/redshift/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/applications/misc/redshift/default.nix b/pkgs/applications/misc/redshift/default.nix
index b8c49cb02a697..2bf4a011e59b8 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}";