@@ -6,7 +6,7 @@
66, asciidoctor # manpages
77, guileSupport ? true, guile
88, luaSupport ? true, lua5
9−, perlSupport ? true, perl
9+, perlSupport ? true, perl, perlPackages
1010, pythonSupport ? true, pythonPackages
1111, rubySupport ? true, ruby
1212, tclSupport ? true, tcl
@@ -108,6 +108,12 @@ in if configure == null then weechat else
108108 extraEnv = ''
109109 export PATH="${perlInterpreter}/bin:$PATH"
110110 '';
111+ withPackages = pkgsFun: (perl // {
112+ extraEnv = ''
113+ ${perl.extraEnv}
114+ export PERL5LIB=${lib.makeFullPerlPath (pkgsFun perlPackages)}
115+ '';
116+ });
111117 };
112118 tcl = simplePlugin "tcl";
113119 ruby = simplePlugin "ruby";