Merge pull request #2132 from gleber/docs-impureEnvVars-env-source

docs: mention source of env variables used by `impureEnvVars`.
This commit is contained in:
Peter Simons 2018-05-03 16:19:10 +02:00 committed by GitHub
commit f02eadfda5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,13 @@ impureEnvVars = [ "http_proxy" "https_proxy" <replaceable>...</replaceable> ];
linkend="fixed-output-drvs">fixed-output derivations</link>, where linkend="fixed-output-drvs">fixed-output derivations</link>, where
impurities such as these are okay since (the hash of) the output impurities such as these are okay since (the hash of) the output
is known in advance. It is ignored for all other 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> </varlistentry>