2016-04-26 14:27:05 +02:00
|
|
|
{ stdenv, symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
|
2014-10-17 13:50:36 +02:00
|
|
|
|
|
|
|
let
|
2016-05-27 11:10:17 +02:00
|
|
|
rxvt_name = builtins.parseDrvName rxvt_unicode.name;
|
2014-10-17 13:50:36 +02:00
|
|
|
|
2016-04-26 14:27:05 +02:00
|
|
|
in symlinkJoin {
|
2016-05-16 09:18:27 +02:00
|
|
|
name = "${rxvt_name.name}-with-plugins-${rxvt_name.version}";
|
2014-10-17 13:50:36 +02:00
|
|
|
|
2016-05-27 11:10:17 +02:00
|
|
|
paths = [ rxvt_unicode ] ++ plugins;
|
2014-10-17 13:50:36 +02:00
|
|
|
|
2016-04-26 14:27:05 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/urxvt \
|
|
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
|
|
|
wrapProgram $out/bin/urxvtd \
|
|
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
|
|
|
'';
|
2016-05-27 12:38:37 +02:00
|
|
|
|
|
|
|
passthru.plugins = plugins;
|
2016-04-26 14:27:05 +02:00
|
|
|
}
|