zlib-ng: fix build on FreeBSD

This commit is contained in:
Audrey Dutcher
2025-02-21 12:05:20 -07:00
parent 6555fbaa43
commit 2561e37d0e
+6
View File
@@ -32,6 +32,12 @@ stdenv.mkDerivation rec {
pkg-config
];
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
# This can be removed when we switch to libcxx from llvm 20
# https://github.com/llvm/llvm-project/pull/122361
NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700";
};
buildInputs = [ gtest ];
cmakeFlags = [