Unverified Commit d33cc2bd authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.kivy: fix build (#370346)

parents e3641dd1 a460583a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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 \