git.iko.soy/typeable/nixpkgs
on master help sign in
top-level: move cross pkgs to overlay
commitd665e80450efcfeed9b245aecb6218cb82e1a24c authorMatthew Bauer <mjbauer95@gmail.com> dateMon 25 Jun 2018, 14:18 (8 years ago) parenteb90f5c
2 files changed+7−5
pkgs/top-level/all-packages.nix−5 pkgs/top-level/stage.nix+7
pkgs/top-level/all-packages.nix−5
@@ -31,11 +31,6 @@ with pkgs;
3131 then pkgsi686Linux.callPackage
3232 else throw "callPackage_i686 not supported on system '${stdenv.system}'";
3333
34− # Useful attribute of systems to cross compile to.
35− pkgsCross = lib.mapAttrs (n: crossSystem:
36− nixpkgsFun { inherit crossSystem; })
37− lib.systems.examples;
38−
3934 # A stdenv capable of building 32-bit binaries. On x86_64-linux,
4035 # it uses GCC compiled with multilib support; on i686-linux, it's
4136 # just the plain stdenv.
pkgs/top-level/stage.nix+7
@@ -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 ++ [