mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 08:31:59 +00:00
apacheHttpd_2_2: Fix setting installbuilddir
Otherwise mod_dnssd doesn't build. Also move apxs to $dev.
This commit is contained in:
parent
311ac81337
commit
b81515c2d4
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue