Unverified Commit 65e232ed authored by Renato Alves's avatar Renato Alves
Browse files

mafft: Apply upstream extern patch to fix build

parent fcf3b4f4
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch,
  runCommand,
  mafft,
}:
@@ -17,6 +18,14 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-VNe00r12qEkLEbpZdJCe5xZ73JA3uAmuAeG+eSeRDI0=";
  };

  patches = [
    (fetchpatch {
      name = "reduce-extern-symbols-alpine-compat";
      url = "https://gitlab.com/sysimm/mafft/-/commit/aa3b7d54e0a05c5ed7d665c094c3d89f2b6a907f.patch";
      hash = "sha256-g89cFcnrLMlU/RLhS1kzCYPd5BWaH7wdz6tR+Ys3bVE=";
    })
  ];

  preBuild = ''
    cd ./core
    make clean