pass: support extensions with $out/bin
An example for that would be `passExtensions.pass-import` where `pimport` is available in `$out/bin`. In that case, `$out/bin` in `buildEnv` isn't a symlink anymore and doesn't need to be removed. Co-authored-by: elseym <elseym@me.com>
This commit is contained in:
parent
2b674912b4
commit
05348ed503
@ -34,11 +34,15 @@ let
|
|||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
files=$(find $out/bin/ -type f -exec readlink -f {} \;)
|
files=$(find $out/bin/ -type f -exec readlink -f {} \;)
|
||||||
|
if [ -L $out/bin ]; then
|
||||||
rm $out/bin
|
rm $out/bin
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
|
fi
|
||||||
|
|
||||||
for i in $files; do
|
for i in $files; do
|
||||||
|
if ! [ "$(readlink -f "$out/bin/$(basename $i)")" = "$i" ]; then
|
||||||
ln -sf $i $out/bin/$(basename $i)
|
ln -sf $i $out/bin/$(basename $i)
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
wrapProgram $out/bin/pass \
|
wrapProgram $out/bin/pass \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user