Merge pull request #21189 from Ericson2314/mea-culpa
Mea culpa. Tests should pass now
This commit is contained in:
commit
63bf5f3ba3
12 changed files with 29 additions and 35 deletions
|
@ -334,7 +334,7 @@ in rec {
|
|||
# The ultimate test: bootstrap a whole stdenv from the tools specified above and get a package set out of it
|
||||
test-pkgs = import test-pkgspath {
|
||||
inherit system;
|
||||
stdenv = args: let
|
||||
stdenvFunc = args: let
|
||||
args' = args // { inherit bootstrapFiles; };
|
||||
in (import (test-pkgspath + "/pkgs/stdenv/darwin") args').stdenvDarwin;
|
||||
};
|
||||
|
|
18
pkgs/stdenv/linux/bootstrap-tools/default.nix
Normal file
18
pkgs/stdenv/linux/bootstrap-tools/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ system, bootstrapFiles }:
|
||||
|
||||
derivation {
|
||||
name = "bootstrap-tools";
|
||||
|
||||
builder = bootstrapFiles.busybox;
|
||||
|
||||
args = [ "ash" "-e" ./scripts/unpack-bootstrap-tools.sh ];
|
||||
|
||||
tarball = bootstrapFiles.bootstrapTools;
|
||||
|
||||
inherit system;
|
||||
|
||||
# Needed by the GCC wrapper.
|
||||
langC = true;
|
||||
langCC = true;
|
||||
isGNU = true;
|
||||
}
|
|
@ -7,12 +7,12 @@
|
|||
, system, platform, crossSystem, config
|
||||
|
||||
, bootstrapFiles ?
|
||||
if system == "i686-linux" then import ./bootstrap/i686.nix
|
||||
else if system == "x86_64-linux" then import ./bootstrap/x86_64.nix
|
||||
else if system == "armv5tel-linux" then import ./bootstrap/armv5tel.nix
|
||||
else if system == "armv6l-linux" then import ./bootstrap/armv6l.nix
|
||||
else if system == "armv7l-linux" then import ./bootstrap/armv7l.nix
|
||||
else if system == "mips64el-linux" then import ./bootstrap/loongson2f.nix
|
||||
if system == "i686-linux" then import ./bootstrap-files/i686.nix
|
||||
else if system == "x86_64-linux" then import ./bootstrap-files/x86_64.nix
|
||||
else if system == "armv5tel-linux" then import ./bootstrap-files/armv5tel.nix
|
||||
else if system == "armv6l-linux" then import ./bootstrap-files/armv6l.nix
|
||||
else if system == "armv7l-linux" then import ./bootstrap-files/armv7l.nix
|
||||
else if system == "mips64el-linux" then import ./bootstrap-files/loongson2f.nix
|
||||
else abort "unsupported platform for the pure Linux stdenv"
|
||||
}:
|
||||
|
||||
|
@ -37,22 +37,7 @@ rec {
|
|||
|
||||
|
||||
# Download and unpack the bootstrap tools (coreutils, GCC, Glibc, ...).
|
||||
bootstrapTools = derivation {
|
||||
name = "bootstrap-tools";
|
||||
|
||||
builder = bootstrapFiles.busybox;
|
||||
|
||||
args = [ "ash" "-e" ./scripts/unpack-bootstrap-tools.sh ];
|
||||
|
||||
tarball = bootstrapFiles.bootstrapTools;
|
||||
|
||||
inherit system;
|
||||
|
||||
# Needed by the GCC wrapper.
|
||||
langC = true;
|
||||
langCC = true;
|
||||
isGNU = true;
|
||||
};
|
||||
bootstrapTools = import ./bootstrap-tools { inherit system bootstrapFiles; };
|
||||
|
||||
|
||||
# This function builds the various standard environments used during
|
||||
|
|
|
@ -173,16 +173,7 @@ rec {
|
|||
bootstrapTools = "${build}/on-server/bootstrap-tools.tar.xz";
|
||||
};
|
||||
|
||||
bootstrapTools = (import ./default.nix {
|
||||
inherit system bootstrapFiles;
|
||||
|
||||
lib = assert false; null;
|
||||
allPackages = assert false; null;
|
||||
|
||||
platform = assert false; null;
|
||||
crossSystem = assert false; null;
|
||||
config = assert false; null;
|
||||
}).bootstrapTools;
|
||||
bootstrapTools = import ./bootstrap-tools { inherit system bootstrapFiles; };
|
||||
|
||||
test = derivation {
|
||||
name = "test-bootstrap-tools";
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
, # The standard environment for building packages, or rather a function
|
||||
# providing it. See below for the arguments given to that function.
|
||||
stdenv ? assert false; null
|
||||
stdenvFunc ? import ../stdenv
|
||||
|
||||
, crossSystem ? null
|
||||
, platform ? assert false; null
|
||||
|
@ -76,7 +76,7 @@ in let
|
|||
inherit lib nixpkgsFun;
|
||||
} // newArgs);
|
||||
|
||||
stdenv = (args.stdenv or (import ../stdenv)) {
|
||||
stdenv = stdenvFunc {
|
||||
inherit lib allPackages system platform crossSystem config;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue