1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

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
commit e4e41a17e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();