Skip to content

Commit

Permalink
apache-httpd: Use multiple outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 13, 2013
1 parent edff23e commit cc61d31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkgs/servers/http/apache-httpd/2.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
sha1 = "f73bce14832ec40c1aae68f4f8c367cab2266241";
};

outputs = [ "dev" "out" "doc" ];

buildInputs = [perl apr aprutil pcre] ++
stdenv.lib.optional sslSupport openssl;

Expand All @@ -42,11 +44,19 @@ stdenv.mkDerivation rec {
--with-mpm=${mpm}
'';

preConfigure =
''
makeFlagsArray+=("installbuilddir=$dev/share/build")
'';

enableParallelBuilding = true;

stripDebugList = "lib modules bin";

postInstall = ''
echo "removing manual"
rm -rf $out/manual
mkdir -p $doc/share/doc/httpd
mv $out/manual $doc/share/doc/httpd
mkdir -p $out/share # FIXME, hack
'';

passthru = {
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5621,6 +5621,7 @@ let
apacheHttpd = pkgs.apacheHttpd_2_2;

apacheHttpd_2_2 = callPackage ../servers/http/apache-httpd/2.2.nix {
stdenv = stdenvMulti;
sslSupport = true;
};

Expand Down

0 comments on commit cc61d31

Please sign in to comment.