@@ -117,6 +117,12 @@ 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; };
125+
120126 # The complete chain of package set builders, applied from top to bottom.
121127 # stdenvOverlays must be last as it brings package forward from the
122128 # previous bootstrapping phases which have already been overlayed.
@@ -127,6 +133,7 @@ let
127133 trivialBuilders
128134 splice
129135 allPackages
136+ cross
130137 aliases
131138 configOverrides
132139 ] ++ overlays ++ [