Merge pull request #35438 from boronine/bibtex-darwin-fix

perlPackages.TextBibTeX: fix dylib path for Darwin
This commit is contained in:
Jörg Thalheim
2018-03-04 20:42:51 +00:00
committed by GitHub

View File

@@ -14722,6 +14722,16 @@ let self = _self // overrides; _self = with self; {
sha256 = "0dig1zlglm8rwm8fhnz087lx6gixj9jx10kxn1fx3swdkfblhsmf";
};
perlPreHook = "export LD=$CC";
perlPostHook = stdenv.lib.optionalString stdenv.isDarwin ''
oldPath="$(pwd)/btparse/src/libbtparse.dylib"
newPath="$out/lib/libbtparse.dylib"
install_name_tool -id "$newPath" "$newPath"
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.3/darwin-2level/auto/Text/BibTeX/BibTeX.bundle"
'';
meta = {
description = "Interface to read and parse BibTeX files";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];