From 65d09fce2216b3270499ccd8de122e197552cce6 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Fri, 10 Jun 2022 19:00:19 +0400 Subject: [PATCH] Mention that -f implies --impure for eval in docs Right now this is not mentioned anywhere and it is unexpected. --- src/libcmd/installables.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 21db2b08b..3cf25e2bc 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},