using getConfig for php so that users who don't know the composableDerivation very well can switch off features.

svn path=/nixpkgs/trunk/; revision=17423
This commit is contained in:
Marc Weber 2009-09-25 19:39:05 +00:00
parent 213519d327
commit 931a5936cb
2 changed files with 18 additions and 18 deletions

View file

@ -114,23 +114,23 @@ composableDerivation {} ( fixed : {
};
cfg = {
mysqlSupport = true;
mysqliSupport = true;
pdo_mysqlSupport = true;
libxml2Support = true;
apxs2Support = true;
bcmathSupport = true;
socketsSupport = true;
curlSupport = true;
gettextSupport = true;
postgresqlSupport = true;
sqliteSupport = true;
soapSupport = true;
zlibSupport = true;
opensslSupport = true;
xdebugSupport = true;
mbstringSupport = true;
gdSupport = true;
mysqlSupport = getConfig ["php" "mysql"] true;
mysqliSupport = getConfig ["php" "mysqli"] true;
pdo_mysqlSupport = getConfig ["php" "pdo_mysql"] true;
libxml2Support = getConfig ["php" "libxml2"] true;
apxs2Support = getConfig ["php" "apxs2"] true;
bcmathSupport = getConfig ["php" "bcmath"] true;
socketsSupport = getConfig ["php" "sockets"] true;
curlSupport = getConfig ["php" "curl"] true;
gettextSupport = getConfig ["php" "gettext"] true;
postgresqlSupport = getConfig ["php" "postgresql"] true;
sqliteSupport = getConfig ["php" "sqlite"] true;
soapSupport = getConfig ["php" "soap"] true;
zlibSupport = getConfig ["php" "zlib"] true;
opensslSupport = getConfig ["php" "openssl"] true;
xdebugSupport = getConfig ["php" "xdebug"] true;
mbstringSupport = getConfig ["php" "mbstring"] true;
gdSupport = getConfig ["php" "gd"] true;
};
# only -O1

View file

@ -2262,7 +2262,7 @@ let
inherit
stdenv fetchurl lib composableDerivation autoconf automake
flex bison apacheHttpd mysql libxml2 # gettext
zlib curl gd postgresql openssl pkgconfig sqlite;
zlib curl gd postgresql openssl pkgconfig sqlite getConfig;
};
pltScheme = builderDefsPackage (import ../development/interpreters/plt-scheme) {