mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
24 lines
673 B
Nix
24 lines
673 B
Nix
{ symlinkJoin, rxvt_unicode, makeWrapper, plugins, perlPackages, perlDeps ? []}:
|
|
|
|
let
|
|
rxvt_name = builtins.parseDrvName rxvt_unicode.name;
|
|
|
|
in symlinkJoin {
|
|
name = "${rxvt_name.name}-with-plugins-${rxvt_name.version}";
|
|
|
|
paths = [ rxvt_unicode ] ++ plugins;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
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"
|
|
'';
|
|
|
|
passthru.plugins = plugins;
|
|
}
|