eval.nix: Exclude internal Nixpkgs config options from node override warning

This commit is contained in:
Zhaofeng Li 2021-02-17 23:06:22 -08:00
parent 3b005b0949
commit 082a033443

View file

@ -255,7 +255,7 @@ let
# meta.nixpkgs are overridden.
warnings = let
metaKeys = attrNames npkgs.config;
nodeKeys = attrNames config.nixpkgs.config;
nodeKeys = [ "doCheckByDefault" "warnings" ] ++ (attrNames config.nixpkgs.config);
remainingKeys = filter (k: ! elem k nodeKeys) metaKeys;
in
lib.optional (length remainingKeys != 0)