zlog: fix build

(cherry picked from commit 2db55bdf7d)
This commit is contained in:
Jacek Galowicz 2024-11-23 10:31:40 +01:00 committed by github-actions[bot]
parent 53f8faeef3
commit 7de14a937e

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