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
waf: Added support for optional extra tools #63042
Conversation
Is there a reason not to include all the tools by default? e.g. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=waf |
Only that there are 99 of them, with varying degree of maintenance. Tools are not loaded by default, so even if the quality may vary from tool to tool they shouldn't cause any problems unless a user have a custom tool with the same name. One additional factor that would support all tools could be that if a custom waf is used, then a custom If the consensus is to include them all I'd be happy to update the PR. In this case, would it still be ok if I provide the default list of all extra tools in |
See also #62592 |
I've counted 103 and they occupy about 510 Kb. The numbers should not matter too much as they are not loaded at all times. This is a long list of names though, I'm not entirely sure we want to maintain it. Also it needs to be pointed out that the current state of PR is not a no-op because it removes "compat15" tool that is supposed to be included by default:
Looking at the definition of
Yes, that would be fine. |
Agreed. And I wouldn't be able to propose a subset of tools to include either (I only know of the ones we use).
Thanks, I also just realized this. I've updated the commit to fix this.
That would be nice. Is it that straightforward? (I haven't dug into what Bottom line: Do we want add and maintain the list of extras? |
Let's abandon this idea for now. Those can be added later if needed.
It should be very simple. Just copy the definition of |
The list of tools `withTools` are included as extra tools when building waf. Example: mywaf = callPackage ../development/tools/build-managers/waf { python = python3; withTools = [ "doxygen" ]; };
@xbreak Thank you! |
The list of tools
withTools
are included as extra tools when building waf.Example:
Motivation for this change
waf carries many extra tools (under
waflib/extras
) that are not included by default. This PR enables users to create a waf version with a selection of these extra tools usingwithTools
.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)