diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-06-13 16:11:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 16:11:46 +0200 |
commit | 798efdf10bae6b2b31a6d37b089ee868f08b43ab (patch) | |
tree | 6f247fe086912e2940faaeaca9498c403ec7d648 /src/libcmd | |
parent | 2fef24f528769d7fedd3275873b59956b13257d1 (diff) | |
parent | 159b5815b527f466578a2d28fbf832617cc45b88 (diff) |
Merge pull request #6027 from Ma27/pure-repl
repl: `--option pure-eval true` actually enables pure eval mode
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/repl.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 458e824c5..3c89a8ea3 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -1039,6 +1039,11 @@ struct CmdRepl : StoreCommand, MixEvalArgs }); } + bool forceImpureByDefault() override + { + return true; + } + std::string description() override { return "start an interactive environment for evaluating Nix expressions"; @@ -1053,8 +1058,6 @@ struct CmdRepl : StoreCommand, MixEvalArgs void run(ref<Store> store) override { - evalSettings.pureEval = false; - auto evalState = make_ref<EvalState>(searchPath, store); auto repl = std::make_unique<NixRepl>(evalState); |