forked from lix-project/hydra
Fix build
This commit is contained in:
parent
ace051e8d9
commit
15a45f1a8a
1 changed files with 22 additions and 18 deletions
|
@ -35,29 +35,33 @@ struct MyArgs : MixEvalArgs, MixCommonArgs
|
||||||
|
|
||||||
MyArgs() : MixCommonArgs("hydra-eval-jobs")
|
MyArgs() : MixCommonArgs("hydra-eval-jobs")
|
||||||
{
|
{
|
||||||
mkFlag()
|
addFlag({
|
||||||
.longName("help")
|
.longName = "help",
|
||||||
.description("show usage information")
|
.description = "show usage information",
|
||||||
.handler([&]() {
|
.handler = {[&]() {
|
||||||
printHelp(programName, std::cout);
|
printHelp(programName, std::cout);
|
||||||
throw Exit();
|
throw Exit();
|
||||||
});
|
}}
|
||||||
|
});
|
||||||
|
|
||||||
mkFlag()
|
addFlag({
|
||||||
.longName("gc-roots-dir")
|
.longName = "gc-roots-dir",
|
||||||
.description("garbage collector roots directory")
|
.description = "garbage collector roots directory",
|
||||||
.labels({"path"})
|
.labels = {"path"},
|
||||||
.dest(&gcRootsDir);
|
.handler = {&gcRootsDir}
|
||||||
|
});
|
||||||
|
|
||||||
mkFlag()
|
addFlag({
|
||||||
.longName("dry-run")
|
.longName = "dry-run",
|
||||||
.description("don't create store derivations")
|
.description = "don't create store derivations",
|
||||||
.set(&dryRun, true);
|
.handler = {&dryRun, true}
|
||||||
|
});
|
||||||
|
|
||||||
mkFlag()
|
addFlag({
|
||||||
.longName("flake")
|
.longName = "flake",
|
||||||
.description("build a flake")
|
.description = "build a flake",
|
||||||
.set(&flake, true);
|
.handler = {&flake, true}
|
||||||
|
});
|
||||||
|
|
||||||
expectArg("expr", &releaseExpr);
|
expectArg("expr", &releaseExpr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue