perl.withPackages: respect $PERL5LIB

perl.withPackages did not allow to add more packages using $PERL5LIB
This commit is contained in:
volth 2020-01-20 18:11:00 +00:00 committed by GitHub
parent 267c5332e7
commit 5540b2e7b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ let
if [ -f "$prg" ]; then
rm -f "$out/bin/$prg"
if [ -x "$prg" ]; then
makeWrapper "$path/bin/$prg" "$out/bin/$prg" --set PERL5LIB "$out/${perl.libPrefix}"
makeWrapper "$path/bin/$prg" "$out/bin/$prg" --suffix PERL5LIB ':' "$out/${perl.libPrefix}"
fi
fi
done