From b81515c2d422868de745ebb8989b67a243e674a4 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 21 Oct 2015 00:22:12 +0300 Subject: [PATCH] apacheHttpd_2_2: Fix setting installbuilddir Otherwise mod_dnssd doesn't build. Also move apxs to $dev. --- pkgs/servers/http/apache-httpd/2.2.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/http/apache-httpd/2.2.nix b/pkgs/servers/http/apache-httpd/2.2.nix index 515446bc9b9e..9974e901a024 100644 --- a/pkgs/servers/http/apache-httpd/2.2.nix +++ b/pkgs/servers/http/apache-httpd/2.2.nix @@ -20,6 +20,7 @@ stdenv.mkDerivation rec { sha256 = "1b165zi7jrrlz5wmyy3b34lcs3dl4g0dymfb0qxwdnimylcrsbzk"; }; + # FIXME: -dev depends on -doc outputs = [ "dev" "out" "doc" ]; buildInputs = [ pkgconfig perl apr aprutil pcre zlib ] ++ @@ -33,6 +34,10 @@ stdenv.mkDerivation rec { # Required for ‘pthread_cancel’. NIX_LDFLAGS = (if stdenv.isDarwin then "" else "-lgcc_s"); + patchPhase = '' + sed -i config.layout -e "s|installbuilddir:.*|installbuilddir: $dev/share/build|" + ''; + configureFlags = '' --with-z=${zlib} --with-pcre=${pcre} @@ -48,11 +53,6 @@ stdenv.mkDerivation rec { --enable-mem-cache ''; - preConfigure = - '' - makeFlagsArray+=("installbuilddir=$dev/share/build") - ''; - enableParallelBuilding = true; stripDebugList = "lib modules bin"; @@ -60,7 +60,8 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $doc/share/doc/httpd mv $out/manual $doc/share/doc/httpd - mkdir -p $out/share # FIXME, hack + mkdir -p $dev/bin + mv $out/sbin/apxs $dev/bin/apxs ''; passthru = {