Add support for --all to nix build#15275
Draft
lisanna-dettwyler wants to merge 1 commit intoNixOS:masterfrom
Draft
Add support for --all to nix build#15275lisanna-dettwyler wants to merge 1 commit intoNixOS:masterfrom
lisanna-dettwyler wants to merge 1 commit intoNixOS:masterfrom
Conversation
Resolves NixOS#7165 Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
Member
|
It probably shouldn't be named It would probably be best to wait until we have flake schemas (DeterminateSystems#217), because then we have a non-ad-hoc way of querying all the buildable flake outputs. Another consideration: we do already have a way to build all flake outputs, namely |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #7165
TODO:
completeFlakeRefWithFragment()so we're not abusing a completion function--allwhich is the fragment to apply to the flakes, e.g..devShellsrather than just getting default completionsIs it OK to abuse RawInstallables as specifying flakes to build
--allfrom? I think so, because normally a flake installable arg evaluates toflake#.packages.<system>.defaultso there is precedent for this.By doing it this way, it automatically does the right thing for multiple out links.
Motivation
This is a very popular requested feature.
Context
This is a WIP POC that I will refine.
#7165
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.