-
Notifications
You must be signed in to change notification settings - Fork 84
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
Distributed build for nixpkgs itself. #208
Comments
@benradf When we set derivations for each target, they run in parallel. However, in general, a derivation consists of some derivations. The derivations are managed by nix, so they would not be built by Bazel in parallel. |
I think that if one derivation can be made into multiple bazel targets, the performance will improve dramatically. |
I see, that makes sense. Thanks for clarifying. We could pass
That would be a great feature to have, but I think it'll be quite difficult to achieve in general. We would have to somehow parse the top-level derivation and split it into Nix expressions for each component. Given the variety of derivations we might encounter, this won't always be possible. If Bazel gets support for Cooperative Parallelism, we might be able to leverage that to coordinate thread usage efficiently between Nix and Bazel. |
Is your feature request related to a problem? Please describe.
I think current rules_nixpkgs analyzes the nix expression and builds the derivations serially.
Describe the solution you'd like
Build independent derivations in parallel by bazel's features.
The text was updated successfully, but these errors were encountered: