mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
git: add more deps to gitweb
This commit is contained in:
parent
2821d3fed7
commit
05b535c850
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user