diff --git a/pkgs/development/interpreters/php_configurable/default.nix b/pkgs/development/interpreters/php_configurable/default.nix index f2b05637858..e430dca0341 100644 --- a/pkgs/development/interpreters/php_configurable/default.nix +++ b/pkgs/development/interpreters/php_configurable/default.nix @@ -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 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0442a04436c..3731e7a9060 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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) {