summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/wxPython
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-10-12 16:33:47 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-10-12 16:33:47 +0200
commit5fb1244dcf7cbbac02fbf6b0bd8b2365f53622ed (patch)
treec8bc8544a52db367b3ed18b02fa99c4f3afe57b0 /pkgs/development/python-modules/wxPython
parent75b49c1fcadab17c2bcbae03c81b775b389586a1 (diff)
python3Packages.wxPython_4_0: fix build on aarch64-darwin
Diffstat (limited to 'pkgs/development/python-modules/wxPython')
-rw-r--r--pkgs/development/python-modules/wxPython/4.0.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/wxPython/4.0.nix b/pkgs/development/python-modules/wxPython/4.0.nix
index 9b4dcd5e6b48..a910358f4382 100644
--- a/pkgs/development/python-modules/wxPython/4.0.nix
+++ b/pkgs/development/python-modules/wxPython/4.0.nix
@@ -12,7 +12,6 @@
, ncurses
, libintl
, wxGTK
-, wxmac
, IOKit
, Carbon
, Cocoa
@@ -35,8 +34,7 @@ buildPythonPackage rec {
doCheck = false;
- nativeBuildInputs = [ pkg-config which doxygen setuptools ]
- ++ (if stdenv.isDarwin then [ wxmac ] else [ wxGTK ]);
+ nativeBuildInputs = [ pkg-config which doxygen setuptools wxGTK ];
buildInputs = [ ncurses libintl ]
++ (if stdenv.isDarwin
@@ -59,6 +57,9 @@ buildPythonPackage rec {
("pangocairo", "${pango.out}/lib/libpangocairo-1.0.so"),
("appsvc", None)
]}'
+ '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
+ # Remove the OSX-Only wx.webkit module
+ sed -i "s/makeETGRule(.*'WXWEBKIT')/pass/" wscript
'';
buildPhase = ''
@@ -69,7 +70,7 @@ buildPythonPackage rec {
${python.interpreter} setup.py install --skip-build --prefix=$out
'';
- passthru = { wxWidgets = if stdenv.isDarwin then wxmac else wxGTK; };
+ passthru = { wxWidgets = wxGTK; };
meta = {