diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-06-14 22:17:01 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-07-02 11:01:23 -0400 |
commit | eb90f5c08e3741c42655b250c19fcd0243a472b1 (patch) | |
tree | 3e93c50c88d7059b827beb4a482538ac8a9637e1 /pkgs | |
parent | 8cf4a4725c1389553228e314432dacb622a29781 (diff) | |
download | nixpkgs-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.nix | 5 |
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. |