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

perlPackages.TextBibTeX: fix dylib path for Darwin

authored by Jörg Thalheim and committed by GitHub 0be67e24 eca1f71f

+10
+10
pkgs/top-level/perl-packages.nix
··· 14722 sha256 = "0dig1zlglm8rwm8fhnz087lx6gixj9jx10kxn1fx3swdkfblhsmf"; 14723 }; 14724 perlPreHook = "export LD=$CC"; 14725 meta = { 14726 description = "Interface to read and parse BibTeX files"; 14727 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
··· 14722 sha256 = "0dig1zlglm8rwm8fhnz087lx6gixj9jx10kxn1fx3swdkfblhsmf"; 14723 }; 14724 perlPreHook = "export LD=$CC"; 14725 + perlPostHook = stdenv.lib.optionalString stdenv.isDarwin '' 14726 + oldPath="$(pwd)/btparse/src/libbtparse.dylib" 14727 + newPath="$out/lib/libbtparse.dylib" 14728 + 14729 + install_name_tool -id "$newPath" "$newPath" 14730 + install_name_tool -change "$oldPath" "$newPath" "$out/bin/biblex" 14731 + install_name_tool -change "$oldPath" "$newPath" "$out/bin/bibparse" 14732 + install_name_tool -change "$oldPath" "$newPath" "$out/bin/dumpnames" 14733 + install_name_tool -change "$oldPath" "$newPath" "$out/lib/perl5/site_perl/5.24.3/darwin-2level/auto/Text/BibTeX/BibTeX.bundle" 14734 + ''; 14735 meta = { 14736 description = "Interface to read and parse BibTeX files"; 14737 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];