git.iko.soy/typeable/nixpkgs
on master help sign in
all-packages: add pkgsCross
commiteb90f5c08e3741c42655b250c19fcd0243a472b1 authorMatthew Bauer <mjbauer95@gmail.com> dateThu 14 Jun 2018, 22:17 (8 years ago) parent8cf4a47
1 file changed+5
pkgs/top-level/all-packages.nix+5
pkgs/top-level/all-packages.nix+5
@@ -31,6 +31,11 @@ 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+
3439 # A stdenv capable of building 32-bit binaries. On x86_64-linux,
3540 # it uses GCC compiled with multilib support; on i686-linux, it's
3641 # just the plain stdenv.