-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
perlPackages.TclpTk: init at 1.09 #175775
Conversation
7703ad3
to
6771e30
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/linking-a-compiled-library-for-perlpackages/19465/1 |
8de4a0d
to
71735a2
Compare
Result of 10 packages built:
|
@agbrooks sorry for the noise here. Turns out I just needed a specific incantation of makeMakerFlags for Tcl to work on nixos. |
Result of 11 packages built:
|
Result of 11 packages built:
|
@GrahamcOfBorg build perlPackages.TclpTk |
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.
Hi there!
TextLevenshteinXS
and WebServiceValidatorHTMLW3C
do not seem to be dependencies of TclpTk
afaik. Would it be better to set up separate PRs for those?
Of course! I was just trying to avoid PR churn, but I've pulled out those two as #176550 and #176551 to keep the PRs cleaner. (For what it's worth, this and those two are related only in that I'm trying to create a build environment for https://github.com/DistributedProofreaders/guiprep/). |
@GrahamcOfBorg build perlPackages.TclpTk perlPackages.TkToolbar perlPackages.Tcl bwidget |
@stigtsp the only consideration that's not fully resolved is the use of bwidget and tk in Tcl. Neither are actually hard dependencies of Tcl, but pTk projects may need both depending on the set of widgets they utilize (see #122472). Since this list could very well grow if/when more Tcl-dependent packages are added, an option might be to have just Tcl be vanilla with no additional tcl packages, and have something like TclFull be the growing list, since I'm not confident that these two additional packages are the only ones that might want to be added. The reason I didn't go down this route already is since no one has to date had a use for such a vanilla Tcl package for perl, so it seemed like it might be a premature optimization. |
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.
LGTM, thanks!
@GrahamcOfBorg build perlPackages.TclpTk perlPackages.TkToolbar perlPackages.Tcl |
Thank you very much! |
Description of changes
Adds
Tcl::pTk
perl package, with necessary dependencies included as well. Builds on darwin and linux, though GUI functionality ofTcl::pTk
only tested on darwin.Note to @agbrooks -- as you noted in #122472, my previous snippet for
perlPackages.Tcl
didn't work on linux. I had to update themakeMakerFlags
to include tclsh and disable stubs. I still struggled with the tk issue noted there, and opted instead to addTcl::pTk
instead ofTcl::Tk
for now.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes