python3Packages.wxpython_4_0: fix darwin build
This commit is contained in:
parent
27830c70b1
commit
a0c2948861
@ -9,10 +9,18 @@
|
|||||||
, python
|
, python
|
||||||
, doxygen
|
, doxygen
|
||||||
, ncurses
|
, ncurses
|
||||||
, wxGTK
|
, libintl
|
||||||
, numpy
|
, numpy
|
||||||
, pillow
|
, pillow
|
||||||
, six
|
, six
|
||||||
|
, wxGTK
|
||||||
|
, wxmac
|
||||||
|
, IOKit
|
||||||
|
, Carbon
|
||||||
|
, Cocoa
|
||||||
|
, AudioToolbox
|
||||||
|
, OpenGL
|
||||||
|
, CoreFoundation
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -26,8 +34,16 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig which doxygen wxGTK ];
|
nativeBuildInputs = [ pkgconfig which doxygen ]
|
||||||
buildInputs = [ ncurses wxGTK.gtk ];
|
++ (if stdenv.isDarwin then [ wxmac ] else [ wxGTK ]);
|
||||||
|
|
||||||
|
buildInputs = [ ncurses libintl ]
|
||||||
|
++ (if stdenv.isDarwin
|
||||||
|
then
|
||||||
|
[ AudioToolbox Carbon Cocoa CoreFoundation IOKit OpenGL ]
|
||||||
|
else
|
||||||
|
[ wxGTK.gtk ]
|
||||||
|
);
|
||||||
|
|
||||||
DOXYGEN = "${doxygen}/bin/doxygen";
|
DOXYGEN = "${doxygen}/bin/doxygen";
|
||||||
|
|
||||||
@ -50,7 +66,7 @@ buildPythonPackage rec {
|
|||||||
${python.interpreter} setup.py install --skip-build --prefix=$out
|
${python.interpreter} setup.py install --skip-build --prefix=$out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = { inherit wxGTK; };
|
passthru = { wxWidgets = if stdenv.isDarwin then wxmac else wxGTK; };
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -8121,6 +8121,7 @@ in {
|
|||||||
|
|
||||||
wxPython_4_0 = callPackage ../development/python-modules/wxPython/4.0.nix {
|
wxPython_4_0 = callPackage ../development/python-modules/wxPython/4.0.nix {
|
||||||
inherit (pkgs) pkgconfig;
|
inherit (pkgs) pkgconfig;
|
||||||
|
inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox Carbon Cocoa CoreFoundation IOKit OpenGL;
|
||||||
wxGTK = pkgs.wxGTK30.override {
|
wxGTK = pkgs.wxGTK30.override {
|
||||||
withGtk2 = false;
|
withGtk2 = false;
|
||||||
withWebKit = true;
|
withWebKit = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user