@@ -8187,7 +8187,7 @@ let
81878187 };
81888188 outputs = [ "out" ];
81898189 buildInputs = [ pkgs.apacheHttpd pkgs.apr pkgs.aprutil ApacheTest ExtUtilsXSBuilder ];
8190− propagatedBuildInputs = [ mod_perl2 ];
8190+ propagatedBuildInputs = [ (pkgs.apacheHttpdPackages.mod_perl.override { inherit perl; }) ];
81918191 makeMakerFlags = "--with-apache2-src=${pkgs.apacheHttpd.dev} --with-apache2-apxs=${pkgs.apacheHttpd.dev}/bin/apxs --with-apache2-httpd=${pkgs.apacheHttpd.out}/bin/httpd --with-apr-config=${pkgs.apr.dev}/bin/apr-1-config --with-apu-config=${pkgs.aprutil.dev}/bin/apu-1-config";
81928192 preConfigure = ''
81938193 # override broken prereq check
@@ -8198,11 +8198,30 @@ let
81988198 '';
81998199 installPhase = ''
82008200 mkdir $out
8201+
8202+ # install the library
82018203 make install DESTDIR=$out
82028204 cp -r $out/${pkgs.apacheHttpd.dev}/. $out/.
82038205 cp -r $out/$out/. $out/.
8206+
8207+ # install the perl module
8208+ pushd glue/perl
8209+ perl Makefile.PL
8210+ make install DESTDIR=$out
8211+ cp -r $out/${perl}/lib/perl5 $out/lib/
8212+ popd
8213+
8214+ # install the apache module
8215+ # https://computergod.typepad.com/home/2007/06/webgui_and_suse.html
8216+ # NOTE: if using the apache module you must use "apreq" as the module name, not "apreq2"
8217+ # services.httpd.extraModules = [ { name = "apreq"; path = "''${pkgs.perlPackages.libapreq2}/modules/mod_apreq2.so"; } ];
8218+ pushd module
8219+ make install DESTDIR=$out
8220+ cp -r $out/${pkgs.apacheHttpd.out}/modules $out/
8221+ popd
8222+
82048223 rm -r $out/nix
8205− '';
8224+ '';
82068225 doCheck = false; # test would need to start apache httpd
82078226 meta = {
82088227 license = stdenv.lib.licenses.asl20;