added config flag for postrgres support

svn path=/nixpkgs/trunk/; revision=5668
This commit is contained in:
Rob Vermaas 2006-07-09 15:00:37 +00:00
parent 2453e67212
commit d05cdd8064
2 changed files with 6 additions and 2 deletions

View File

@ -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"

View File

@ -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;