stdenv: use intersectAttrs instead of intersectLists

Better complexity.
This commit is contained in:
Naïm Favier 2022-12-17 12:55:44 +01:00
parent 4804305f6e
commit 0b067316d4
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -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.";