From 2f3dcb9dd225dd6f7b6e59c8763d80624dfcad9e Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 17 Oct 2012 15:38:09 +0200 Subject: apache-httpd/2.4: Fix libxml2 support. The reason because the configure script is unnable to find libxml2 is because it is searching for a header file in `libxml/*.h`. Obviously this cases an error, because it's actually in `${libxml2}/include/libxml2/libxml/*.h`, so let's add the parent directory to --with-libxml2 and remove the comment from buildInputs. Signed-off-by: aszlig --- pkgs/servers/http/apache-httpd/2.4.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index 44fa145b60596..ed0c3ec6ea915 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { buildInputs = [perl] ++ optional ldapSupport openldap ++ # there is no --with-ldap flag - optional libxml2Support libxml2; # there is --with-libxml2, but it doesn't work + optional libxml2Support libxml2; # Required for ‘pthread_cancel’. NIX_LDFLAGS = "-lgcc_s"; @@ -41,6 +41,7 @@ stdenv.mkDerivation rec { ${optionalString proxySupport "--enable-proxy"} ${optionalString sslSupport "--enable-ssl --with-ssl=${openssl}"} ${optionalString luaSupport "--enable-lua --with-lua=${lua5}"} + ${optionalString libxml2Support "--with-libxml2=${libxml2}/include/libxml2"} ''; postInstall = '' -- cgit 1.4.1