aboutsummaryrefslogtreecommitdiff
path: root/src/nix/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-05 18:59:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-05 18:59:33 +0200
commit6f3244ce4517cc51ef3ffd39025152aa7046ef69 (patch)
tree588f8deb7406821d2d1157c310e15adde4001a61 /src/nix/build.cc
parent941f95284ab57e9baa317791327cf1715d8564b5 (diff)
parent909b4a882057a92ae8b40b8afdab3c4ac30da915 (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/nix/build.cc')
-rw-r--r--src/nix/build.cc22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc
index 613bd9efb..83d47acd4 100644
--- a/src/nix/build.cc
+++ b/src/nix/build.cc
@@ -12,17 +12,19 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixProfile
CmdBuild()
{
- mkFlag()
- .longName("out-link")
- .shortName('o')
- .description("path of the symlink to the build result")
- .labels({"path"})
- .dest(&outLink);
+ addFlag({
+ .longName = "out-link",
+ .shortName = 'o',
+ .description = "path of the symlink to the build result",
+ .labels = {"path"},
+ .handler = {&outLink},
+ });
- mkFlag()
- .longName("no-link")
- .description("do not create a symlink to the build result")
- .set(&outLink, Path(""));
+ addFlag({
+ .longName = "no-link",
+ .description = "do not create a symlink to the build result",
+ .handler = {&outLink, Path("")},
+ });
}
std::string description() override