diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2022-06-15 09:17:03 -0400 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2022-06-15 09:17:03 -0400 |
commit | 51268ceb793a025252918b384155f750b387ccd9 (patch) | |
tree | 53d85ef3504c6e65351da4a5b490b1bc3af50073 /src/libcmd | |
parent | dae4a8a6c8d8dfde3292d3e9e05977bc13648bda (diff) | |
parent | 63df0fda94b60719fd1db13fa42422d0835561ad (diff) |
Merge branch 'master' into nix-repl-flakes
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/installables.cc | 3 | ||||
-rw-r--r-- | src/libcmd/repl.cc | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index ddbb401f0..e31336b9e 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -146,7 +146,8 @@ SourceExprCommand::SourceExprCommand(bool supportReadOnlyMode) .shortName = 'f', .description = "Interpret installables as attribute paths relative to the Nix expression stored in *file*. " - "If *file* is the character -, then a Nix expression will be read from standard input.", + "If *file* is the character -, then a Nix expression will be read from standard input. " + "Implies `--impure`.", .category = installablesCategory, .labels = {"file"}, .handler = {&file}, diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index e173610de..28b05fc2c 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -1066,6 +1066,11 @@ struct CmdRepl : InstallablesCommand return file.has_value() or expr.has_value(); } + bool forceImpureByDefault() override + { + return true; + } + std::string description() override { return "start an interactive environment for evaluating Nix expressions"; |