git: add more deps to gitweb

This commit is contained in:
gnidorah 2018-03-28 12:27:19 +03:00
parent 2821d3fed7
commit 05b535c850
2 changed files with 1 additions and 11 deletions

View File

@ -4,16 +4,6 @@ with lib;
let let
cfg = config.services.gitweb; cfg = config.services.gitweb;
gitwebPerlLibs = with pkgs.perlPackages; [ CGIFast FCGI FCGIProcManager HTMLTagCloud ];
git = pkgs.git.overrideAttrs (oldAttrs: rec {
postInstall = ''
${oldAttrs.postInstall}
for p in ${lib.concatStringsSep " " gitwebPerlLibs}; do
sed -i -e "/use CGI /i use lib \"$p/lib/perl5/site_perl\";" \
"$out/share/gitweb/gitweb.cgi"
done
'';
});
in in
{ {

View File

@ -15,7 +15,7 @@ let
perlPackages.MIMEBase64 perlPackages.AuthenSASL perlPackages.MIMEBase64 perlPackages.AuthenSASL
perlPackages.DigestHMAC perlPackages.DigestHMAC
]; ];
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser ]; gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
}; };
in in