Add build target/target-file flags to build subcommand #38
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.
Split off from #35.
Adds:
A
buildTargets
argument to the Nix machine builder expression, that expects an attribute set of the form{ outputLinkName = node: node.config.some.attribute.to.build.per.machine; }
and replaces the default build targets based on this, if givenA
--target
flag onmorph build
that allows specifying a singlebuildTargets
set member on the CLI as a lambda, e.g.morph build some/deployment.nix --target 'node: node.config.environment.etc."nix/nix.conf"'
A
--target-file
flag onmorph build
that makes it convenient to specify a file to import containing a validbuildTargets
expression, e.g.morph build some/deployment.nix --build-targets='./manual-epub.nix'
Where the contents of
manual-epub.nix
are: