-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
wxPython30: fix on darwin #22814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxPython30: fix on darwin #22814
Conversation
I think we should send this to staging. |
4d88fb8
to
8a01589
Compare
This has only ~10 reverse dependencies. |
fd8fc65
to
6a5010d
Compare
|
||
NIX_LDFLAGS = "-lX11 -lgdk-x11-2.0"; | ||
NIX_LDFLAGS = if stdenv.isDarwin then "" else "-lX11 -lgdk-x11-2.0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib.optionalString (!stdenv.isDarwin)
is a bit nicer for this
|
||
buildPhase = ""; | ||
|
||
installPhase = '' | ||
${python.interpreter} setup.py install WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out | ||
${python.interpreter} setup.py install WXPORT=${if stdenv.isDarwin then "osx_cocoa" else "gtk2"} NO_HEADERS=1 BUILD_GLCANVAS=${if openglSupport then "1" else "0"} UNICODE=1 --prefix=$out |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do those work as environment variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allright
Thank you! |
Motivation for this change
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)