mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
stdenv: use intersectAttrs
instead of intersectLists
Better complexity.
This commit is contained in:
parent
4804305f6e
commit
0b067316d4
|
@ -483,7 +483,7 @@ else let
|
|||
|
||||
checkedEnv =
|
||||
let
|
||||
overlappingNames = lib.intersectLists (lib.attrNames env) (lib.attrNames derivationArg);
|
||||
overlappingNames = lib.attrNames (builtins.intersectAttrs env derivationArg);
|
||||
in
|
||||
assert lib.assertMsg envIsExportable
|
||||
"When using structured attributes, `env` must be an attribute set of environment variables.";
|
||||
|
|
Loading…
Reference in a new issue