pygtk: fix build on aarch64-darwin

This commit is contained in:
Weijia Wang 2022-10-04 13:42:41 +02:00
parent d8cb641929
commit 7994937ed2

View File

@ -36,7 +36,8 @@ buildPythonPackage rec {
buildPhase = "buildPhase";
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-ObjC";
NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-ObjC"
++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) "-lpython2.7";
installPhase = "installPhase";