Browse Source

git: add more deps to gitweb

nixos-19.03
gnidorah 4 years ago
parent
commit
05b535c850
  1. 10
      nixos/modules/services/web-servers/nginx/gitweb.nix
  2. 2
      pkgs/applications/version-management/git-and-tools/default.nix

10
nixos/modules/services/web-servers/nginx/gitweb.nix

@ -4,16 +4,6 @@ with lib;
let
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
{

2
pkgs/applications/version-management/git-and-tools/default.nix

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

Loading…
Cancel
Save