perlPackages.TextBibTeX: fix build on Darwin (#45327)

Building TextBibTeX fails on Darwin because the path to BibTeX.bundle
has a hardcoded Perl version. Use 'perl.version' instead.
This commit is contained in:
Daniël de Kok 2018-08-20 00:01:56 +02:00 committed by xeji
parent e1d1b7ff65
commit be2de4f21e

View File

@ -16147,7 +16147,7 @@ let
install_name_tool -change "$oldPath" "$newPath" "$out/bin/biblex"
install_name_tool -change "$oldPath" "$newPath" "$out/bin/bibparse"
install_name_tool -change "$oldPath" "$newPath" "$out/bin/dumpnames"
install_name_tool -change "$oldPath" "$newPath" "$out/lib/perl5/site_perl/5.24.4/darwin-2level/auto/Text/BibTeX/BibTeX.bundle"
install_name_tool -change "$oldPath" "$newPath" "$out/lib/perl5/site_perl/${perl.version}/darwin-2level/auto/Text/BibTeX/BibTeX.bundle"
'';
meta = {
description = "Interface to read and parse BibTeX files";