diff --git a/pkgs/by-name/zl/zlog/package.nix b/pkgs/by-name/zl/zlog/package.nix index df6c253075e6..3273a0d5ff63 100644 --- a/pkgs/by-name/zl/zlog/package.nix +++ b/pkgs/by-name/zl/zlog/package.nix @@ -21,6 +21,11 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=${placeholder "out"}" ]; + preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' + makeFlagsArray+=(CFLAGS="-Wno-pointer-to-int-cast -Wno-newline-eof") + ''; + + meta = with lib; { description= "Reliable, high-performance, thread safe, flexible, clear-model, pure C logging library"; homepage = "https://hardysimpson.github.io/zlog/";