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. # meta.nixpkgs are overridden.
warnings = let warnings = let
metaKeys = attrNames npkgs.config; metaKeys = attrNames npkgs.config;
nodeKeys = attrNames config.nixpkgs.config; nodeKeys = [ "doCheckByDefault" "warnings" ] ++ (attrNames config.nixpkgs.config);
remainingKeys = filter (k: ! elem k nodeKeys) metaKeys; remainingKeys = filter (k: ! elem k nodeKeys) metaKeys;
in in
lib.optional (length remainingKeys != 0) lib.optional (length remainingKeys != 0)