webkitgtk: added optional geoclue2 dependency.

This commit is contained in:
koral 2014-12-29 12:23:32 +01:00 committed by Peter Simons
parent 01a48ead88
commit fa4b210d3f

View File

@ -2,14 +2,18 @@
, pkgconfig, gettext, gobjectIntrospection , pkgconfig, gettext, gobjectIntrospection
, gtk2, gtk3, wayland, libwebp, enchant , gtk2, gtk3, wayland, libwebp, enchant
, libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs
, enableGeoLocation ? true, geoclue2
, gst-plugins-base , gst-plugins-base
}: }:
assert enableGeoLocation -> geoclue2 != null;
with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "webkitgtk-${version}"; name = "webkitgtk-${version}";
version = "2.6.4"; version = "2.6.4";
meta = with stdenv.lib; { meta = {
description = "Web content rendering engine, GTK+ port"; description = "Web content rendering engine, GTK+ port";
homepage = "http://webkitgtk.org/"; homepage = "http://webkitgtk.org/";
license = licenses.bsd2; license = licenses.bsd2;
@ -37,7 +41,7 @@ stdenv.mkDerivation rec {
gtk2 wayland libwebp enchant gtk2 wayland libwebp enchant
libxml2 libsecret libxslt harfbuzz libpthreadstubs libxml2 libsecret libxslt harfbuzz libpthreadstubs
gst-plugins-base gst-plugins-base
]; ] ++ optional enableGeoLocation geoclue2;
propagatedBuildInputs = [ propagatedBuildInputs = [
libsoup gtk3 libsoup gtk3