-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
gnuplot on MacOS X (2nd attempt at #1166) #1190
Conversation
I have some doubts about the change from What bothers me about Anyway ... I don't feel strongly about this. Just my 2 cents. |
IMO it would be theoretically best if the core (needed for compiling stuff) could be factored out and shared (perhaps just by splitting the resulting binaries into multiple outputs). A quick search shows that e.g. Ubuntu does it, so it's possible to take inspiration how to do the build if it's more complicated. |
Yes, that's true. That would be even nicer. |
Hmm, I could go either way. I was under the impression that the non-gtk Emacs on Darwin route was not preferred and so went with emacs-nox instead. But am happy to revise this again to go that route. Should I make a new pull request? |
@kowey, yes, please open a new pull request. It's probably a good idea to split the emacs change off your other patch and to submit two separate pull requests for those two so that they don't block each other. |
This keeps the dependencies lighter. Perhaps future work on this derivation could enable the Cocoa interface by default on Mac.
This variant uses the more Mac-friendly aqua driver, but it requires that you separately install the AquaTerm package. Note that AquaTerm is open source and could perhaps be later included as a nix derivation. If that happens, it would be nice to remove the gnuplot_aquaterm top-level attribute and just make it the default.
Replaced by attempt #1197 |
#1166 removed the emacs dependency and built with the aqua driver by default on Mac. But there are two problems:
So this version sticks with the X11 version by default, but offers a top-level gnuplot_aquaterm that you can use to build a more Mac-y gnuplot.
I haven't yet dared contribute an Aquaterm derivation because I don't really know what I'm doing. It's currently installed as a “framework” (/Library/Frameworks/AquaTerm.framework) which I dimly understand to be self-contained collections of libraries. I imagine some future nixpkgs will be able to install frameworks too so you get something like ~/.nix-profile/Frameworks.