Merge pull request #14185 from NixOS/backport-14086-to-2.31-maintenance

[Backport 2.31-maintenance] nix-cli: use pure/restricted eval for help pages
This commit is contained in:
internal-nix-ci[bot]
2025-10-08 00:20:41 +00:00
committed by GitHub

View File

@@ -226,8 +226,8 @@ static void showHelp(std::vector<std::string> subcommand, NixArgs & toplevel)
auto mdName = subcommand.empty() ? "nix" : fmt("nix3-%s", concatStringsSep("-", subcommand));
evalSettings.restrictEval = false;
evalSettings.pureEval = false;
evalSettings.restrictEval = true;
evalSettings.pureEval = true;
EvalState state({}, openStore("dummy://"), fetchSettings, evalSettings);
auto vGenerateManpage = state.allocValue();