summaryrefslogtreecommitdiff
path: root/pkgs/stdenv/linux/make-bootstrap-tools-cross.nix
blob: 694d90d970e3023120ab5e732669b506af09273c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  system ? builtins.currentSystem,
}:

let
  inherit (releaseLib) lib;
  releaseLib = import ../../top-level/release-lib.nix {
    # We're not using any functions from release-lib.nix that look at
    # supportedSystems.
    supportedSystems = [ ];
  };

  make =
    crossSystem:
    import ./make-bootstrap-tools.nix {
      pkgs = releaseLib.pkgsForCross crossSystem system;
    };
in
lib.mapAttrs (n: make) (
  with lib.systems.examples;
  {
    # NOTE: Only add platforms for which there are files in `./bootstrap-files`
    # or for which you plan to request the tarball upload soon. See the
    #   maintainers/scripts/bootstrap-files/README.md
    # on how to request an upload.
    # Sort following the sorting in `./default.nix` `bootstrapFiles` argument.

    armv5tel-unknown-linux-gnueabi = sheevaplug;
    armv6l-unknown-linux-gnueabihf = raspberryPi;
    armv7l-unknown-linux-gnueabihf = armv7l-hf-multiplatform;
    aarch64-unknown-linux-gnu = aarch64-multiplatform;
    mipsel-unknown-linux-gnu = mipsel-linux-gnu;
    mips64el-unknown-linux-gnuabin32 = mips64el-linux-gnuabin32;
    mips64el-unknown-linux-gnuabi64 = mips64el-linux-gnuabi64;
    powerpc64-unknown-linux-gnuabielfv2 = ppc64;
    powerpc64le-unknown-linux-gnu = powernv;
    riscv64-unknown-linux-gnu = riscv64;
    s390x-unknown-linux-gnu = s390x;

    # musl
    aarch64-unknown-linux-musl = aarch64-multiplatform-musl;
    armv6l-unknown-linux-musleabihf = muslpi;
    x86_64-unknown-linux-musl = musl64;
  }
)