Skip to content

Commit

Permalink
bwa-mem2: fix build on x86_64-darwin (#351356)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 27, 2024
2 parents 0b7a52a + afaf2aa commit 1cc1588
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/applications/science/biology/bwa-mem2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ stdenv.mkDerivation (finalAttrs: {
else if stdenv.hostPlatform.avx512Support then "arch=avx512"
else "arch=sse41")
];

env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=register"
"-Wno-error=implicit-function-declaration"
];
};

enableParallelBuilding = true;
installPhase = ''
runHook preInstall
Expand Down

0 comments on commit 1cc1588

Please sign in to comment.