about summary refs log tree commit diff
diff options
context:
space:
mode:
authorkoral <koral@mailoo.org>2014-12-29 12:23:32 +0100
committerkoral <koral@mailoo.org>2014-12-29 21:56:00 +0100
commita268b0e1c8f9554150e24a8395cf5e229013b23b (patch)
treefa8293b9fcb42177a5ff600f68bb8bdb5c68bc6b
parent3070630aa7bc0a51fd801036ff94b72544c37de7 (diff)
downloadnixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar.gz
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar.bz2
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar.lz
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar.xz
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.tar.zst
nixlib-a268b0e1c8f9554150e24a8395cf5e229013b23b.zip
webkitgtk: added optional geoclue2 dependency.
-rw-r--r--pkgs/development/libraries/webkitgtk/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix
index 9515ff223899..9f56d2006472 100644
--- a/pkgs/development/libraries/webkitgtk/default.nix
+++ b/pkgs/development/libraries/webkitgtk/default.nix
@@ -2,14 +2,18 @@
 , pkgconfig, gettext, gobjectIntrospection
 , gtk2, gtk3, wayland, libwebp, enchant
 , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs
+, enableGeoLocation ? true, geoclue2
 , gst-plugins-base
 }:
 
+assert enableGeoLocation -> geoclue2 != null;
+
+with stdenv.lib;
 stdenv.mkDerivation rec {
   name = "webkitgtk-${version}";
   version = "2.6.4";
 
-  meta = with stdenv.lib; {
+  meta = {
     description = "Web content rendering engine, GTK+ port";
     homepage = "http://webkitgtk.org/";
     license = licenses.bsd2;
@@ -37,7 +41,7 @@ stdenv.mkDerivation rec {
     gtk2 wayland libwebp enchant
     libxml2 libsecret libxslt harfbuzz libpthreadstubs
     gst-plugins-base
-  ];
+  ] ++ optional enableGeoLocation geoclue2;
 
   propagatedBuildInputs = [
     libsoup gtk3