diff --git a/pkgs/development/interpreters/php/builder.sh b/pkgs/development/interpreters/php/builder.sh index a8e36aac9bf6..f52658dc2ab3 100644 --- a/pkgs/development/interpreters/php/builder.sh +++ b/pkgs/development/interpreters/php/builder.sh @@ -10,6 +10,10 @@ configureFlags="$configureFlags \ if test -n "$unixODBC"; then configureFlags="$configureFlags --with-unixODBC=$unixODBC" fi + +if test -n "$postgresql"; then + configureFlags="$configureFlags --with-pgsql=$postgresql" +fi makeFlags="APXS_LIBEXECDIR=$out/modules $makeFlags" diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index d60b130fce0b..9d55c88b3ed6 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, flex, bison, libxml2, apacheHttpd, unixODBC ? null}: +{stdenv, fetchurl, flex, bison, libxml2, apacheHttpd, unixODBC ? null, postgresql ? null}: assert libxml2 != null; @@ -15,7 +15,7 @@ stdenv.mkDerivation { buildInputs = [flex bison libxml2 apacheHttpd]; - inherit unixODBC; + inherit unixODBC postgresql; odbcSupport = unixODBC != null;