From 5ba6395378e6e92266bba0dd46e3cf3ab6e2fce8 Mon Sep 17 00:00:00 2001 From: Gleb Peregud Date: Wed, 2 May 2018 22:07:23 +0200 Subject: docs: mention source of env variables used by `impureEnvVars`. --- doc/manual/expressions/advanced-attributes.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') 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" ... ]; linkend="fixed-output-drvs">fixed-output derivations, where impurities such as these are okay since (the hash of) the output is known in advance. It is ignored for all other - derivations. + derivations. + + impureEnvVars 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 + nix-build. -- cgit 1.4.1