aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorValentin Gagarin <valentin.gagarin@tweag.io>2023-05-31 03:15:54 +0200
committerGitHub <noreply@github.com>2023-05-31 03:15:54 +0200
commit738c0d506452cd51037ed4d37b3d0b665f828987 (patch)
tree080818ce209ee73412ab29eed91f9d016bef0ee1 /src/libexpr/eval.hh
parent52004696c080db6640af9a4e0d1e6f56d094cd2b (diff)
parent6a5a8f51bb9773ab4aeac8f508872bcf5ec6fda2 (diff)
Merge pull request #8318 from fricklerhandwerk/doc-currentTime
document `builtins.currentTime`
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 62b380929..d6f4560a5 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -745,7 +745,13 @@ struct EvalSettings : Config
)"};
Setting<bool> pureEval{this, false, "pure-eval",
- "Whether to restrict file system and network access to files specified by cryptographic hash."};
+ R"(
+ Pure evaluation mode ensures that the result of Nix expressions is fully determined by explicitly declared inputs, and not influenced by external state:
+
+ - Restrict file system and network access to files specified by cryptographic hash
+ - Disable [`bultins.currentSystem`](@docroot@/language/builtin-constants.md#builtins-currentSystem) and [`builtins.currentTime`](@docroot@/language/builtin-constants.md#builtins-currentTime)
+ )"
+ };
Setting<bool> enableImportFromDerivation{
this, true, "allow-import-from-derivation",