diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-16 13:32:28 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-16 13:32:28 -0400 |
commit | 048e916f6477acc7e57e1d85e832d3efb42ad3f6 (patch) | |
tree | 3261da4d301fc6bd9df375a8bab3a4a555dc6199 /src/nix/repl.cc | |
parent | 886c91dfcc462d157dc2ce5265800e98d1bc45dd (diff) | |
parent | 16c9f6762d082155b967710a5fd3a095937d76ba (diff) |
Merge branch 'master' of github.com:NixOS/nix into optional-derivation-output-storepath
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r-- | src/nix/repl.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 74f0b3ec8..fb9050d0d 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -760,7 +760,11 @@ struct CmdRepl : StoreCommand, MixEvalArgs CmdRepl() { - expectArgs("files", &files); + expectArgs({ + .label = "files", + .handler = {&files}, + .completer = completePath + }); } std::string description() override @@ -780,6 +784,7 @@ struct CmdRepl : StoreCommand, MixEvalArgs void run(ref<Store> store) override { + evalSettings.pureEval = false; auto repl = std::make_unique<NixRepl>(searchPath, openStore()); repl->autoArgs = getAutoArgs(*repl->state); repl->mainLoop(files); |