python311Packages.pygame: fix build with clang 16

This commit is contained in:
Weijia Wang
2023-11-10 03:03:57 +01:00
parent 3f616fad02
commit 96b4f29958
@@ -60,6 +60,10 @@ buildPythonPackage rec {
${python.pythonOnBuildForHost.interpreter} buildconfig/config.py
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
};
checkPhase = ''
runHook preCheck