@@ -2,7 +2,7 @@
22, gnugrep, gzip, openssh
33, asciidoc, texinfo, xmlto, docbook2x, docbook_xsl, docbook_xml_dtd_45
44, libxslt, tcl, tk, makeWrapper, libiconv
5−, svnSupport, subversionClient, perlLibs, smtpPerlLibs
5+, svnSupport, subversionClient, perlLibs, smtpPerlLibs, gitwebPerlLibs
66, guiSupport
77, withManual ? true
88, pythonSupport ? true
@@ -102,6 +102,11 @@ stdenv.mkDerivation {
102102 # gitweb.cgi, need to patch so that it's found
103103 sed -i -e "s|'compressor' => \['gzip'|'compressor' => ['${gzip}/bin/gzip'|" \
104104 $out/share/gitweb/gitweb.cgi
105+ # Give access to CGI.pm and friends (was removed from perl core in 5.22)
106+ for p in ${stdenv.lib.concatStringsSep " " gitwebPerlLibs}; do
107+ sed -i -e "/use CGI /i use lib \"$p/lib/perl5/site_perl\";" \
108+ "$out/share/gitweb/gitweb.cgi"
109+ done
105110
106111 # Also put git-http-backend into $PATH, so that we can use smart
107112 # HTTP(s) transports for pushing