aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorValentin Gagarin <valentin.gagarin@tweag.io>2023-05-17 14:59:47 +0200
committerValentin Gagarin <valentin.gagarin@tweag.io>2023-05-17 15:01:54 +0200
commit6a5a8f51bb9773ab4aeac8f508872bcf5ec6fda2 (patch)
tree1b1fb5ddf057082334b595af01c8501731191e07 /doc/manual
parent549f8dc97b56babb0e23e2c097dce2fa283b6d09 (diff)
add cross-references to pure evaluation mode
use consistent wording everywhere. add some details on the configuration option documentation.
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/src/language/builtin-constants.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/manual/src/language/builtin-constants.md b/doc/manual/src/language/builtin-constants.md
index 204daab6e..e6bc7e915 100644
--- a/doc/manual/src/language/builtin-constants.md
+++ b/doc/manual/src/language/builtin-constants.md
@@ -18,6 +18,8 @@ These constants are built into the Nix language evaluator:
identifier for the Nix installation on which the expression is being
evaluated, such as `"i686-linux"` or `"x86_64-darwin"`.
+ Not available in [pure evaluation mode](@docroot@/command-ref/conf-file.md#conf-pure-eval).
+
- [`builtins.currentTime`]{#builtins-currentTime} (integer)
Return the [Unix time](https://en.wikipedia.org/wiki/Unix_time) at first evaluation.
@@ -36,7 +38,6 @@ These constants are built into the Nix language evaluator:
1683705525
```
- > **Warning**
- >
- > This is intended for testing and debugging only.
- > Do not use it in production systems, since an impure, that is, non-constant value will break reproducibility.
+ The [store path](@docroot@/glossary.md#gloss-store-path) of a derivation depending on `currentTime` will differ for each evaluation.
+
+ Not available in [pure evaluation mode](@docroot@/command-ref/conf-file.md#conf-pure-eval).