Skip to content
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

Add build target/target-file flags to build subcommand #38

Merged
merged 4 commits into from
Feb 20, 2019

Conversation

Shados
Copy link
Contributor

@Shados Shados commented Feb 6, 2019

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 given

  • A --target flag on morph build that allows specifying a single buildTargets 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 on morph build that makes it convenient to specify a file to import containing a valid buildTargets expression, e.g. morph build some/deployment.nix --build-targets='./manual-epub.nix'

    Where the contents of manual-epub.nix are:

    {
      "manual" = node: node.config.system.build.manual.manualEpub;
    }

morph.go Outdated Show resolved Hide resolved
morph.go Outdated Show resolved Hide resolved
johanot
johanot previously approved these changes Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants