aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-03-27 15:46:18 +0200
committerGitHub <noreply@github.com>2023-03-27 15:46:18 +0200
commit237587bc0af9259414d50ed18f137c2214d7abb1 (patch)
tree98110281567c0e5fb8623065e8172b8559feafb4 /src/libcmd
parent1d539aa28711b4214867ebd8db85de1000bbbe59 (diff)
parent168b6021c558f317fc01b142c1610742e9b9096b (diff)
Merge pull request #8084 from edolstra/store-docs
Auto-generate store documentation
Diffstat (limited to 'src/libcmd')
-rw-r--r--src/libcmd/command.hh1
-rw-r--r--src/libcmd/common-eval-args.cc6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libcmd/command.hh b/src/libcmd/command.hh
index 874ca3249..b7a87dad0 100644
--- a/src/libcmd/command.hh
+++ b/src/libcmd/command.hh
@@ -18,6 +18,7 @@ class EvalState;
struct Pos;
class Store;
+static constexpr Command::Category catHelp = -1;
static constexpr Command::Category catSecondary = 100;
static constexpr Command::Category catUtility = 101;
static constexpr Command::Category catNixInstallation = 102;
diff --git a/src/libcmd/common-eval-args.cc b/src/libcmd/common-eval-args.cc
index a954a8c6f..5b6477c82 100644
--- a/src/libcmd/common-eval-args.cc
+++ b/src/libcmd/common-eval-args.cc
@@ -136,7 +136,11 @@ MixEvalArgs::MixEvalArgs()
addFlag({
.longName = "eval-store",
- .description = "The Nix store to use for evaluations.",
+ .description =
+ R"(
+ The [URL of the Nix store](@docroot@/command-ref/new-cli/nix3-help-stores.md#store-url-format)
+ to use for evaluation, i.e. to store derivations (`.drv` files) and inputs referenced by them.
+ )",
.category = category,
.labels = {"store-url"},
.handler = {&evalStoreUrl},