top-level/stage: assert no by-name overwrites (#483820)

This commit is contained in:
Michael Daniels
2026-03-20 21:09:30 +00:00
committed by GitHub
+4
View File
@@ -155,7 +155,11 @@ let
overlays
;
} res self super;
conflictingAttrs = lib.intersectAttrs res super;
in
assert lib.assertMsg (conflictingAttrs == { })
"The following attributes were defined both in `pkgs/top-level/all-packages.nix` and elsewhere, most likely in `pkgs/by-name/`: ${lib.concatStringsSep ", " (lib.attrNames conflictingAttrs)}";
res;
aliases = self: super: lib.optionalAttrs config.allowAliases (import ./aliases.nix lib self super);