Allow selecting derivation outputs#6449
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/tweag-nix-dev-update-29/18903/1 |
|
I've changed the |
|
🎉 All dependencies have been resolved ! |
E.g. 'nixpkgs#glibc^dev,static' or 'nixpkgs#glibc^*'.
|
@edolstra you still did not address and instead many of the issues in the other thread, once again.
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/recent-nix-change-worthy-of-greater-attention/18972/1 |
|
It would be useful for this to operate at the expression level, rather than the store level, so that packages can be split across derivations. Here's a use case where it breaks NixOS/nixpkgs#175785 (comment) Another use case is for packages that use heavy tooling in their docs output. Splitting those docs out into a separate derivation reduces the build closure size. See also #6507 |
This allows selecting the outputs of a derivation
nixshould operate on using the syntaxinstallable^outputs, e.g.nixpkgs#glibc^dev,staticornixpkgs#glibc^*. By default,nixwill use the outputs specified by the derivation'smeta.outputsToInstallattribute if it exists, or all outputs otherwise.Depends on #6426.