chromium: Add flag to disable Gnome support.

This also separates gcrypt and gconf from the basic dependencies.
Unfortunately we cannot get rid of dbus_glib altogether, but maybe we want to
work on a patch to get rid of it? On the other hand it seems to be a TODO of the
chromium project itself, so let's wait and see.
This commit is contained in:
aszlig 2012-06-19 20:21:31 +02:00 committed by Eelco Dolstra
parent c2b145c32f
commit 57e127099b
1 changed files with 6 additions and 2 deletions

View File

@ -18,6 +18,7 @@
, useSELinux ? false
, naclSupport ? false
, useOpenSSL ? true
, enableGnomeSupport ? false
, gnomeKeyringSupport ? false
, useProprietaryCodecs ? false
}:
@ -83,9 +84,10 @@ in stdenv.mkDerivation rec {
utillinux alsaLib
gcc bison gperf
krb5
glib gtk gconf libgcrypt dbus_glib
glib gtk dbus_glib
libXScrnSaver libXcursor
] ++ stdenv.lib.optional gnomeKeyringSupport libgnome_keyring;
] ++ stdenv.lib.optional gnomeKeyringSupport libgnome_keyring
++ stdenv.lib.optionals enableGnomeSupport [ gconf libgcrypt ];
opensslPatches = stdenv.lib.optional useOpenSSL openssl.patches;
@ -102,6 +104,8 @@ in stdenv.mkDerivation rec {
linux_use_gold_flags = false;
proprietary_codecs = false;
use_gnome_keyring = gnomeKeyringSupport;
use_gconf = enableGnomeSupport;
use_gio = enableGnomeSupport;
disable_nacl = !naclSupport;
use_openssl = useOpenSSL;
selinux = useSELinux;