about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2018-05-03T14·19+0200
committerGitHub <noreply@github.com>2018-05-03T14·19+0200
commitf02eadfda59e2c98c0638f94a4b5342cf50a2586 (patch)
tree204240981ea394489e96ee72f0072b1b1b81d8b2
parentc717d8e3bd96db9a597e11f067585cf1aee50a40 (diff)
parent5ba6395378e6e92266bba0dd46e3cf3ab6e2fce8 (diff)
Merge pull request #2132 from gleber/docs-impureEnvVars-env-source
docs: mention source of env variables used by `impureEnvVars`.
-rw-r--r--doc/manual/expressions/advanced-attributes.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/manual/expressions/advanced-attributes.xml b/doc/manual/expressions/advanced-attributes.xml
index f3cf98371302..dfd013b5cf31 100644
--- a/doc/manual/expressions/advanced-attributes.xml
+++ b/doc/manual/expressions/advanced-attributes.xml
@@ -112,7 +112,13 @@ impureEnvVars = [ "http_proxy" "https_proxy" <replaceable>...</replaceable> ];
     linkend="fixed-output-drvs">fixed-output derivations</link>, where
     impurities such as these are okay since (the hash of) the output
     is known in advance.  It is ignored for all other
-    derivations.</para></listitem>
+    derivations.</para>
+
+    <warning><para><varname>impureEnvVars</varname> implementation takes
+    environment variables from the current builder process. When a daemon is
+    building its environmental variables are used. Without the daemon, the
+    environmental variables come from the environment of the
+    <command>nix-build</command>.</para></warning></listitem>
 
   </varlistentry>