Skip to content

Commit 8aa4669

Browse files
authored
Merge pull request #14086 from getchoo-contrib/getchoo/help-pure-eval
nix-cli: use pure/restricted eval for help pages
2 parents 89141f1 + ff82de8 commit 8aa4669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nix/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ static void showHelp(std::vector<std::string> subcommand, NixArgs & toplevel)
226226

227227
auto mdName = subcommand.empty() ? "nix" : fmt("nix3-%s", concatStringsSep("-", subcommand));
228228

229-
evalSettings.restrictEval = false;
230-
evalSettings.pureEval = false;
229+
evalSettings.restrictEval = true;
230+
evalSettings.pureEval = true;
231231
EvalState state({}, openStore("dummy://"), fetchSettings, evalSettings);
232232

233233
auto vGenerateManpage = state.allocValue();

0 commit comments

Comments
 (0)