rxvt_unicode-with-plugins: use symlinkJoin
This commit is contained in:
parent
d40e636bdc
commit
c1e9ea6c86
|
@ -1,28 +1,21 @@
|
||||||
{ stdenv, buildEnv, rxvt_unicode, makeWrapper, plugins }:
|
{ stdenv, symlinkJoin, rxvt_unicode, makeWrapper, plugins }:
|
||||||
|
|
||||||
let
|
let
|
||||||
rxvt = rxvt_unicode.override {
|
rxvt = rxvt_unicode.override {
|
||||||
perlSupport = true;
|
perlSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
drv = buildEnv {
|
in symlinkJoin {
|
||||||
name = "${rxvt.name}-with-plugins";
|
name = "${rxvt.name}-with-plugins";
|
||||||
|
|
||||||
paths = [ rxvt ] ++ plugins;
|
paths = [ rxvt ] ++ plugins;
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postBuild = ''
|
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 \
|
wrapProgram $out/bin/urxvt \
|
||||||
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
||||||
wrapProgram $out/bin/urxvtd \
|
wrapProgram $out/bin/urxvtd \
|
||||||
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
--suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl"
|
||||||
'';
|
'';
|
||||||
};
|
}
|
||||||
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
|
|
||||||
|
|
Loading…
Reference in New Issue