b2sum: Fix build on darwin

Fixes #272923.
This commit is contained in:
Raphael Robatsch 2023-12-12 15:19:08 +01:00 committed by Weijia Wang
parent 1eae89be7a
commit 98201e24a0

View file

@ -23,6 +23,11 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [ openmp ];
buildFlags = [ (lib.optional (openmp == null) "NO_OPENMP=1") ];
# clang builds require at least C99 or the build fails with:
# error: unknown type name 'inline'
env.NIX_CFLAGS_COMPILE = "-std=c99";
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {