zlog: fix build

This commit is contained in:
Jacek Galowicz 2024-11-23 10:31:40 +01:00
parent cc707500a5
commit 2db55bdf7d

View File

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