aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval-settings.hh
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-16 14:29:38 -0600
committerQyriad <qyriad@qyriad.me>2024-05-17 00:41:35 +0000
commit5ff076d8adeec81654abbab47b2c871d4b3fdaa2 (patch)
tree1f232aca0ca6a5556d55d0d882a53b81a5f2f1de /src/libexpr/eval-settings.hh
parent5756be19f65f125276e6f36ec6e624b06001bc70 (diff)
docs: mention importNative/exec in allow-unsafe-native-code-during-evaluation
Both of these still needs their own actual documentation, but they are at least now mentioned that they exist and what they're enabled by. Change-Id: I235b9e8e627e04ed06611423c8e67a8eca233120
Diffstat (limited to 'src/libexpr/eval-settings.hh')
-rw-r--r--src/libexpr/eval-settings.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libexpr/eval-settings.hh b/src/libexpr/eval-settings.hh
index 98fe6881e..4674acda2 100644
--- a/src/libexpr/eval-settings.hh
+++ b/src/libexpr/eval-settings.hh
@@ -14,8 +14,11 @@ struct EvalSettings : Config
static std::string resolvePseudoUrl(std::string_view url);
- Setting<bool> enableNativeCode{this, false, "allow-unsafe-native-code-during-evaluation",
- "Whether builtin functions that allow executing native code should be enabled."};
+ Setting<bool> enableNativeCode{this, false, "allow-unsafe-native-code-during-evaluation", R"(
+ Whether builtin functions that allow executing native code should be enabled.
+
+ In particular, this adds the `importNative` and `exec` builtins.
+ )"};
Setting<Strings> nixPath{
this, getDefaultNixPath(), "nix-path",