Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgs/top-level/stage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,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);
Expand Down
Loading