2016-04-26 13:27:05 +01:00
|
|
|
{ stdenv, symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
|
2014-10-17 12:50:36 +01:00
|
|
|
|
|
|
|
let
|
2016-05-27 10:10:17 +01:00
|
|
|
rxvt_name = builtins.parseDrvName rxvt_unicode.name;
|
2014-10-17 12:50:36 +01:00
|
|
|
|
2016-04-26 13:27:05 +01:00
|
|
|
in symlinkJoin {
|
2016-05-16 08:18:27 +01:00
|
|
|
name = "${rxvt_name.name}-with-plugins-${rxvt_name.version}";
|
2014-10-17 12:50:36 +01:00
|
|
|
|
2016-05-27 10:10:17 +01:00
|
|
|
paths = [ rxvt_unicode ] ++ plugins;
|
2014-10-17 12:50:36 +01:00
|
|
|
|
2016-04-26 13:27:05 +01: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 11:38:37 +01:00
|
|
|
|
|
|
|
passthru.plugins = plugins;
|
2016-04-26 13:27:05 +01:00
|
|
|
}
|