aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBenjamin Hipple <bhipple@protonmail.com>2020-02-15 01:37:44 -0500
committerBenjamin Hipple <bhipple@protonmail.com>2020-02-15 01:44:51 -0500
commit762febafe2694e7e1b2276181c7ec5564fca0b85 (patch)
treee0c5ec1df012b532e8ebe9e5dd910ef6f7ca5ec6 /doc
parent9af10b753c8a636f828b148fc3a9aecd1c0067fa (diff)
doc: mention how to turn on pure evaluation mode in manual
The flag is `--pure-eval`, which can be found by looking at the test suite; it should be in the notes describing the feature as well, since otherwise users may assume this is referencing something like `nix-shell --pure`.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/release-notes/rl-2.0.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/manual/release-notes/rl-2.0.xml b/doc/manual/release-notes/rl-2.0.xml
index fc9a77b08..bf6a679a1 100644
--- a/doc/manual/release-notes/rl-2.0.xml
+++ b/doc/manual/release-notes/rl-2.0.xml
@@ -503,14 +503,14 @@
</listitem>
<listitem>
- <para><emphasis>Pure evaluation mode</emphasis>. This is a variant
- of the existing restricted evaluation mode. In pure mode, the Nix
- evaluator forbids access to anything that could cause different
- evaluations of the same command line arguments to produce a
+ <para><emphasis>Pure evaluation mode</emphasis>. With the
+ <literal>--pure-eval</literal> flag, nix enables a variant of the existing
+ restricted evaluation mode that forbids access to anything that could cause
+ different evaluations of the same command line arguments to produce a
different result. This includes builtin functions such as
<function>builtins.getEnv</function>, but more importantly,
- <emphasis>all</emphasis> filesystem or network access unless a
- content hash or commit hash is specified. For example, calls to
+ <emphasis>all</emphasis> filesystem or network access unless a content hash
+ or commit hash is specified. For example, calls to
<function>builtins.fetchGit</function> are only allowed if a
<varname>rev</varname> attribute is specified.</para>