From fa1309bae91d1ee0e09258b4a303e328ab456dc0 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 28 Nov 2023 23:23:16 +0900 Subject: [PATCH] python311Packages.afdko: fix build on clang --- pkgs/development/python-modules/afdko/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/afdko/default.nix b/pkgs/development/python-modules/afdko/default.nix index a821e9d87890..556261277ea0 100644 --- a/pkgs/development/python-modules/afdko/default.nix +++ b/pkgs/development/python-modules/afdko/default.nix @@ -64,6 +64,11 @@ buildPythonPackage rec { ./use-dynamic-system-antlr4-runtime.patch ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (toString [ + "-Wno-error=incompatible-function-pointer-types" + "-Wno-error=int-conversion" + ]); + # setup.py will always (re-)execute cmake in buildPhase dontConfigure = true;