aboutsummaryrefslogtreecommitdiff
path: root/src/nix/eval.cc
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2022-03-26 11:32:38 +0100
committerErik Arvstedt <erik.arvstedt@gmail.com>2022-03-26 11:32:38 +0100
commit16860a0328094c04c3e877089119a56f9ddfbcd6 (patch)
tree1f3999b4263604737d27ed0b612ea2201d40696f /src/nix/eval.cc
parent679b3b32c952eed3c3be6c450c8189948e5645cd (diff)
nix eval: Add option `read-only`
Diffstat (limited to 'src/nix/eval.cc')
-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",