1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 07:31:15 +02:00

Revert "getDefaultNixPath: actually respect {restrict,pure}-eval"

This reverts commit 1cba5984a6.
This commit is contained in:
Eelco Dolstra 2023-02-27 15:11:36 +01:00
parent e928c72cf9
commit dd93c12c6a
4 changed files with 17 additions and 31 deletions

View file

@ -570,7 +570,7 @@ struct EvalSettings : Config
{
EvalSettings();
Strings getDefaultNixPath();
static Strings getDefaultNixPath();
static bool isPseudoUrl(std::string_view s);
@ -580,7 +580,7 @@ struct EvalSettings : Config
"Whether builtin functions that allow executing native code should be enabled."};
Setting<Strings> nixPath{
this, {}, "nix-path",
this, getDefaultNixPath(), "nix-path",
"List of directories to be searched for `<...>` file references."};
Setting<bool> restrictEval{