python312Packages.kivy: fix build

This commit is contained in:
Weijia Wang
2025-01-02 20:49:20 +01:00
parent 55f5553543
commit a460583a48
@@ -82,7 +82,14 @@ buildPythonPackage rec {
# prefer pkg-config over hardcoded framework paths
USE_OSX_FRAMEWORKS = 0;
# work around python distutils compiling C++ with $CC (see issue #26709)
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isGNU [
"-Wno-error=incompatible-pointer-types"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
"-I${lib.getDev libcxx}/include/c++/v1"
]
);
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace kivy/lib/mtdev.py \