python312Packages.kivy: fix build
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user