mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 17:39:34 +00:00
added config flag for postrgres support
svn path=/nixpkgs/trunk/; revision=5668
This commit is contained in:
parent
2453e67212
commit
d05cdd8064
pkgs/development/interpreters/php
|
@ -10,6 +10,10 @@ configureFlags="$configureFlags \
|
||||||
if test -n "$unixODBC"; then
|
if test -n "$unixODBC"; then
|
||||||
configureFlags="$configureFlags --with-unixODBC=$unixODBC"
|
configureFlags="$configureFlags --with-unixODBC=$unixODBC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test -n "$postgresql"; then
|
||||||
|
configureFlags="$configureFlags --with-pgsql=$postgresql"
|
||||||
|
fi
|
||||||
|
|
||||||
makeFlags="APXS_LIBEXECDIR=$out/modules $makeFlags"
|
makeFlags="APXS_LIBEXECDIR=$out/modules $makeFlags"
|
||||||
|
|
||||||
|
|
|
@ -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;
|
assert libxml2 != null;
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
buildInputs = [flex bison libxml2 apacheHttpd];
|
buildInputs = [flex bison libxml2 apacheHttpd];
|
||||||
|
|
||||||
inherit unixODBC;
|
inherit unixODBC postgresql;
|
||||||
|
|
||||||
odbcSupport = unixODBC != null;
|
odbcSupport = unixODBC != null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue