Merge pull request #35438 from boronine/bibtex-darwin-fix
perlPackages.TextBibTeX: fix dylib path for Darwin
This commit is contained in:
commit
0be67e24b7
@ -14722,6 +14722,16 @@ let self = _self // overrides; _self = with self; {
|
|||||||
sha256 = "0dig1zlglm8rwm8fhnz087lx6gixj9jx10kxn1fx3swdkfblhsmf";
|
sha256 = "0dig1zlglm8rwm8fhnz087lx6gixj9jx10kxn1fx3swdkfblhsmf";
|
||||||
};
|
};
|
||||||
perlPreHook = "export LD=$CC";
|
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 = {
|
meta = {
|
||||||
description = "Interface to read and parse BibTeX files";
|
description = "Interface to read and parse BibTeX files";
|
||||||
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
|
||||||
|
Loading…
Reference in New Issue
Block a user