2014-10-17 12:50:36 +01:00
|
|
|
{ stdenv, buildEnv, rxvt_unicode, makeWrapper, plugins }:
|
|
|
|
|
|
|
|
let
|
|
|
|
rxvt = rxvt_unicode.override {
|
|
|
|
perlSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
drv = buildEnv {
|
|
|
|
name = "${rxvt.name}-with-plugins";
|
|
|
|
|
|
|
|
paths = [ rxvt ] ++ plugins;
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
# TODO: This could be avoided if buildEnv could be forced to create all directories
|
|
|
|
if [ -L $out/bin ]; then
|
|
|
|
rm $out/bin
|
|
|
|
mkdir $out/bin
|
|
|
|
for i in ${rxvt}/bin/*; do
|
|
|
|
ln -s $i $out/bin
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
wrapProgram $out/bin/urxvt \
|
|
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
2015-04-01 13:29:20 +01:00
|
|
|
wrapProgram $out/bin/urxvtd \
|
|
|
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
2014-10-17 12:50:36 +01:00
|
|
|
'';
|
|
|
|
};
|
2015-04-01 23:46:57 +01:00
|
|
|
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
|