zlog: fix build (#358363)

This commit is contained in:
Weijia Wang 2024-11-23 15:16:59 +01:00 committed by GitHub
commit 888af184f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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/";