Skip to content
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

Merged
merged 2 commits into from Feb 17, 2017
Merged

wxPython30: fix on darwin #22814

merged 2 commits into from Feb 17, 2017

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Feb 15, 2017

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@veprbl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh, @vbgl and @fpletz to be potential reviewers.

@FRidh FRidh changed the base branch from master to staging February 15, 2017 07:03
@FRidh FRidh changed the base branch from staging to master February 15, 2017 07:03
@FRidh
Copy link
Member

FRidh commented Feb 15, 2017

I think we should send this to staging.

@LnL7 LnL7 added the 6.topic: darwin Running or building packages on Darwin label Feb 15, 2017
@veprbl veprbl force-pushed the wxpython branch 2 times, most recently from 4d88fb8 to 8a01589 Compare February 15, 2017 18:39
@veprbl
Copy link
Member Author

veprbl commented Feb 15, 2017

This has only ~10 reverse dependencies.

@veprbl veprbl force-pushed the wxpython branch 4 times, most recently from fd8fc65 to 6a5010d Compare February 15, 2017 20:33

NIX_LDFLAGS = "-lX11 -lgdk-x11-2.0";
NIX_LDFLAGS = if stdenv.isDarwin then "" else "-lX11 -lgdk-x11-2.0";
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allright

@LnL7 LnL7 merged commit 8a5c615 into NixOS:master Feb 17, 2017
@veprbl
Copy link
Member Author

veprbl commented Feb 17, 2017

Thank you!

@veprbl veprbl deleted the wxpython branch December 1, 2020 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants