aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQyriad <qyriad@qyriad.me>2024-05-17 18:17:05 +0000
committerGerrit Code Review <gerrit@lix-systems>2024-05-17 18:17:05 +0000
commit93b7edfd077e056f9deb7656be796ea49a162f51 (patch)
tree48fe2450f050a73b2b6ae52d9fe7921bc4e991b2
parent005ee33a9a145f714f4837b1c0b5c430ac3bc588 (diff)
parent5ff076d8adeec81654abbab47b2c871d4b3fdaa2 (diff)
Merge "docs: mention importNative/exec in allow-unsafe-native-code-during-evaluation" into main
-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",