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

Projects
None yet
2 participants
@Shados
Copy link
Contributor

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;
    }
Show resolved Hide resolved morph.go Outdated

@Shados Shados force-pushed the Shados:add-build-target branch from 8b5af9b to 96f567d Feb 20, 2019

Show resolved Hide resolved morph.go Outdated

@Shados Shados force-pushed the Shados:add-build-target branch from 96f567d to b3eb9cb Feb 20, 2019

@johanot johanot merged commit 26b2238 into DBCDK:master Feb 20, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment