@@ -117,11 +117,17 @@ let
117117 lib.optionalAttrs allowCustomOverrides
118118 ((config.packageOverrides or (super: {})) super);
119119
120− # Convenient way to reference cross
121− # Used in aliases for now but should not be used in Nixpkgs.
122− cross = self: super: { pkgsCross = lib.mapAttrs (n: crossSystem:
123− nixpkgsFun { inherit crossSystem; })
124− lib.systems.examples; };
120+ # Convenience attributes for instantitating nixpkgs. Each of these
121+ # will instantiate a new version of allPackages. They map example
122+ # attributes to their own thing.
123+ extraPkgs = self: super: {
124+ pkgsCross = lib.mapAttrs (n: crossSystem:
125+ nixpkgsFun { inherit crossSystem; })
126+ lib.systems.examples;
127+ pkgsLocal = lib.mapAttrs (n: localSystem:
128+ nixpkgsFun { inherit localSystem; })
129+ lib.systems.examples;
130+ };
125131
126132 # The complete chain of package set builders, applied from top to bottom.
127133 # stdenvOverlays must be last as it brings package forward from the
@@ -133,7 +139,7 @@ let
133139 trivialBuilders
134140 splice
135141 allPackages
136− cross
142+ extraPkgs
137143 aliases
138144 configOverrides
139145 ] ++ overlays ++ [