aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-04-15 10:31:05 +0200
committerGitHub <noreply@github.com>2022-04-15 10:31:05 +0200
commitb135de2b5f08aa8b549d69371823235124ef04a1 (patch)
treef128df01aa69578f34025f2db3ca8d67ca727bf8 /src/nix
parentd6effddd3b9657988d1e86e1258c33de6ae4af2b (diff)
parent16860a0328094c04c3e877089119a56f9ddfbcd6 (diff)
Merge pull request #6323 from erikarvstedt/eval-read-only
`nix eval`: Add option `--read-only`
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc
index 8cd04d5fe..733b93661 100644
--- a/src/nix/eval.cc
+++ b/src/nix/eval.cc
@@ -16,7 +16,7 @@ struct CmdEval : MixJSON, InstallableCommand
std::optional<std::string> apply;
std::optional<Path> writeTo;
- CmdEval()
+ CmdEval() : InstallableCommand(true /* supportReadOnlyMode */)
{
addFlag({
.longName = "raw",