From 106cf3d281e705446c5e3df44eaeab1ece40f131 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 9 Dec 2024 18:50:08 +0100 Subject: [PATCH] libdict: fix darwin build --- pkgs/by-name/li/libdict/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/li/libdict/package.nix b/pkgs/by-name/li/libdict/package.nix index 72567b2de818..c9eb090fd4e6 100644 --- a/pkgs/by-name/li/libdict/package.nix +++ b/pkgs/by-name/li/libdict/package.nix @@ -28,6 +28,13 @@ stdenv.mkDerivation (finalAttrs: { "-DLIBDICT_SHARED=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}" ]; + env.NIX_CFLAGS_COMPILE = toString ( + lib.optionals stdenv.cc.isClang [ + "-Wno-error=strict-prototypes" + "-Wno-error=newline-eof" + ] + ); + doCheck = true; meta = with lib; {