Skip to content

Commit

Permalink
perlPackages.TextBibTeX: use lib instead of lib64 on aarch64 (#122567)
Browse files Browse the repository at this point in the history
  • Loading branch information
xworld21 committed May 15, 2021
1 parent 8599a6c commit 3d385c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/perl-modules/TextBibTeX-use-lib-on-aarch64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/Build.PL
+++ b/Build.PL
@@ -88,7 +88,7 @@ if ( $^O =~ /mswin32/i ) {
}
}
else {
- if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^aarch64|^riscv64/ ) {
+ if ( $Config{archname} =~ /^x86_64|^ppc64|^s390x|^riscv64/ ) {
$libdir =~ s/\bbin\b/lib64/;
if ( !-d $libdir ) {
my $test = $libdir;
2 changes: 2 additions & 0 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21787,6 +21787,8 @@ let
url = "mirror://cpan/authors/id/A/AM/AMBS/Text-BibTeX-0.88.tar.gz";
sha256 = "0b7lmjvfmypps1nw6nsdikgaakm0n0g4186glaqazg5xd1p5h55h";
};
# libbtparse.so: cannot open shared object file (aarch64 only)
patches = [ ../development/perl-modules/TextBibTeX-use-lib-on-aarch64.patch ];
perlPreHook = "export LD=$CC";
perlPostHook = lib.optionalString stdenv.isDarwin ''
oldPath="$(pwd)/btparse/src/libbtparse.dylib"
Expand Down

0 comments on commit 3d385c7

Please sign in to comment.