Skip to content

Commit

Permalink
python312Packages.kivy: fix build (#370346)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Jan 3, 2025
2 parents e3641dd + a460583 commit d33cc2b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/python-modules/kivy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d33cc2b

Please sign in to comment.