perlPackages.TextBibTex: fix dylib path for Darwin

This commit is contained in:
Alexei Boronine 2018-02-23 03:20:03 +01:00
parent 1869e7e5b0
commit e8a336b154

View file

@ -14573,6 +14573,15 @@ 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"
'';
meta = {
description = "Interface to read and parse BibTeX files";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];