Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stdenv: fix env pass through with structured attrs
When using structured attributes, `env` attributes must not be derivation arguments. Fixes the following example: ``` let drv = stdenv.mkDerivation { name = "foo"; __structuredAttrs = true; env.FOO = "foo"; }; in stdenv.mkDerivation drv.drvAttrs ``` Note that passthru takes precedence over env. ``` nix-repl> (stdenv.mkDerivation { name = "foo"; env.FOO = "foo"; passthru.FOO = "bar"; }).FOO "bar" ```
- Loading branch information