Skip to content

Commit

Permalink
bwa-mem2: fix build on x86_64-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium committed Oct 26, 2024
1 parent 63ded93 commit afaf2aa
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 afaf2aa

Please sign in to comment.