[Nix-dev] impureEnvVars, the second

Eelco Dolstra eelco.dolstra at logicblox.com
Thu Apr 17 17:12:55 CEST 2014


Hi,

On 17/04/14 17:04, Ben Franksen wrote:

> sorry to bother you again regarding impureEnvVars. I still can't get my 
> fetchdarcs over ssh to work, even though I am now using constant-output 
> derivations and have
> 
>   impureEnvVars = [ "SSH_AGENT_PID" "SSH_AUTH_SOCK" ];
> 
> in my fetchdarcs/default.nix.
> 
> The environment variables are now defined in the builder. However, they are 
> empty :(
> 
> Could this be because I am using the Nix multi-user setup where building is 
> delegated to a number of nixbld users? 

Right, environment variables from the client are not passed to the builder. Even
if they were, the builder probably would not have file system access to the
socket identifier by $SSH_AUTH_SOCK.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list