2016-12-16 14:22:02 +01:00
|
|
|
{ lib
|
|
|
|
, crossSystem, config
|
|
|
|
, bootStages
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert crossSystem == null;
|
|
|
|
|
|
|
|
bootStages ++ [
|
|
|
|
(prevStage: let
|
|
|
|
inherit (prevStage) stdenv;
|
|
|
|
in {
|
2016-12-24 19:55:11 +01:00
|
|
|
inherit (prevStage) buildPlatform hostPlatform targetPlatform;
|
|
|
|
inherit config overlays;
|
2016-12-16 14:22:02 +01:00
|
|
|
|
|
|
|
stdenv = import ../generic rec {
|
|
|
|
inherit config;
|
|
|
|
|
|
|
|
preHook = ''
|
|
|
|
export NIX_ENFORCE_PURITY="''${NIX_ENFORCE_PURITY-1}"
|
|
|
|
export NIX_ENFORCE_NO_NATIVE="''${NIX_ENFORCE_NO_NATIVE-1}"
|
|
|
|
export NIX_IGNORE_LD_THROUGH_GCC=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
initialPath = (import ../common-path.nix) { pkgs = prevStage; };
|
|
|
|
|
2017-05-22 03:37:16 +02:00
|
|
|
inherit (prevStage.stdenv) hostPlatform targetPlatform;
|
2016-12-16 14:22:02 +01:00
|
|
|
|
|
|
|
cc = import ../../build-support/cc-wrapper {
|
|
|
|
nativeTools = false;
|
2017-05-22 03:37:16 +02:00
|
|
|
nativePrefix = stdenv.lib.optionalString hostPlatform.isSunOS "/usr";
|
2016-12-16 14:22:02 +01:00
|
|
|
nativeLibc = true;
|
|
|
|
inherit stdenv;
|
|
|
|
inherit (prevStage) binutils coreutils gnugrep;
|
|
|
|
cc = prevStage.gcc.cc;
|
|
|
|
isGNU = true;
|
|
|
|
shell = prevStage.bash + "/bin/sh";
|
|
|
|
};
|
|
|
|
|
|
|
|
shell = prevStage.bash + "/bin/sh";
|
|
|
|
|
|
|
|
fetchurlBoot = stdenv.fetchurlBoot;
|
|
|
|
|
|
|
|
overrides = self: super: {
|
|
|
|
inherit cc;
|
|
|
|
inherit (cc) binutils;
|
|
|
|
inherit (prevStage)
|
|
|
|
gzip bzip2 xz bash coreutils diffutils findutils gawk
|
|
|
|
gnumake gnused gnutar gnugrep gnupatch perl;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
]
|