2024-06-30 08:16:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
crossSystem,
|
|
|
|
localSystem,
|
|
|
|
config,
|
|
|
|
overlays,
|
|
|
|
bootStages,
|
|
|
|
...
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert crossSystem == localSystem;
|
|
|
|
|
2024-06-30 08:16:52 +00:00
|
|
|
bootStages
|
|
|
|
++ [
|
2024-05-02 00:46:19 +00:00
|
|
|
(prevStage: {
|
|
|
|
inherit config overlays;
|
|
|
|
|
|
|
|
stdenv = import ../generic rec {
|
|
|
|
inherit config;
|
|
|
|
|
|
|
|
inherit (prevStage.stdenv) buildPlatform hostPlatform targetPlatform;
|
|
|
|
|
|
|
|
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 ../generic/common-path.nix) { pkgs = prevStage; };
|
|
|
|
|
|
|
|
cc = import ../../build-support/cc-wrapper {
|
|
|
|
inherit lib;
|
|
|
|
nativeTools = false;
|
|
|
|
nativePrefix = lib.optionalString hostPlatform.isSunOS "/usr";
|
|
|
|
nativeLibc = true;
|
2024-06-30 08:16:52 +00:00
|
|
|
inherit (prevStage)
|
|
|
|
stdenvNoCC
|
|
|
|
binutils
|
|
|
|
coreutils
|
|
|
|
gnugrep
|
|
|
|
;
|
2024-05-02 00:46:19 +00:00
|
|
|
cc = prevStage.gcc.cc;
|
|
|
|
isGNU = true;
|
|
|
|
shell = prevStage.bash + "/bin/sh";
|
|
|
|
};
|
|
|
|
|
|
|
|
shell = prevStage.bash + "/bin/sh";
|
|
|
|
|
|
|
|
fetchurlBoot = prevStage.stdenv.fetchurlBoot;
|
|
|
|
|
|
|
|
overrides = self: super: {
|
|
|
|
inherit cc;
|
|
|
|
inherit (cc) binutils;
|
|
|
|
inherit (prevStage)
|
2024-06-30 08:16:52 +00:00
|
|
|
gzip
|
|
|
|
bzip2
|
|
|
|
xz
|
|
|
|
bash
|
|
|
|
coreutils
|
|
|
|
diffutils
|
|
|
|
findutils
|
|
|
|
gawk
|
|
|
|
gnumake
|
|
|
|
gnused
|
|
|
|
gnutar
|
|
|
|
gnugrep
|
|
|
|
gnupatch
|
|
|
|
perl
|
|
|
|
;
|
2024-05-02 00:46:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
})
|
|
|
|
]
|