rxvt_unicode: allow to specify dependencies for plugins

This commit is contained in:
rnhmjoj 2019-04-19 15:42:09 +02:00
parent 517b9de2c7
commit cfc4a7c03b
No known key found for this signature in database
GPG Key ID: 91BE884FBA4B591A

View File

@ -1,4 +1,4 @@
{ symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
{ symlinkJoin, rxvt_unicode, makeWrapper, plugins, perlPackages, perlDeps ? []}:
let
rxvt_name = builtins.parseDrvName rxvt_unicode.name;
@ -12,8 +12,10 @@ in symlinkJoin {
postBuild = ''
wrapProgram $out/bin/urxvt \
--set PERL5LIB : "${perlPackages.makePerlPath perlDeps}" \
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
wrapProgram $out/bin/urxvtd \
--set PERL5LIB : "${perlPackages.makePerlPath perlDeps}" \
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
'';