summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-06-14 22:17:01 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-07-02 11:01:23 -0400
commiteb90f5c08e3741c42655b250c19fcd0243a472b1 (patch)
tree3e93c50c88d7059b827beb4a482538ac8a9637e1 /pkgs
parent8cf4a4725c1389553228e314432dacb622a29781 (diff)
downloadnixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar.gz
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar.bz2
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar.lz
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar.xz
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.tar.zst
nixpkgs-eb90f5c08e3741c42655b250c19fcd0243a472b1.zip
all-packages: add pkgsCross
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/all-packages.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index d3d40662053..86b5ee6a8b0 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -31,6 +31,11 @@ with pkgs;
     then pkgsi686Linux.callPackage
     else throw "callPackage_i686 not supported on system '${stdenv.system}'";
 
+  # Useful attribute of systems to cross compile to.
+  pkgsCross = lib.mapAttrs (n: crossSystem:
+              nixpkgsFun { inherit crossSystem; })
+              lib.systems.examples;
+
   # A stdenv capable of building 32-bit binaries.  On x86_64-linux,
   # it uses GCC compiled with multilib support; on i686-linux, it's
   # just the plain stdenv.