3 test-pkgspath ? pkgspath,
5 system = builtins.currentSystem;
12 cross = if crossSystem != null then { inherit crossSystem; } else { };
15 if bootstrapFiles != null then
21 bootstrapFiles = bootstrapFiles;
24 (import "${pkgspath}/pkgs/stdenv/darwin" args');
29 pkgs = import pkgspath ({ inherit localSystem; } // cross // custom-bootstrap);
31 build = pkgs.callPackage ./stdenv-bootstrap-tools.nix { };
33 bootstrapTools = pkgs.callPackage ./bootstrap-tools.nix {
34 inherit (build.bootstrapFiles) bootstrapTools unpack;
37 test = pkgs.callPackage ./test-bootstrap-tools.nix { inherit bootstrapTools; };
39 # The ultimate test: bootstrap a whole stdenv from the tools specified above and get a package set out of it
40 # eg: nix-build -A freshBootstrapTools.test-pkgs.stdenv
41 test-pkgs = import test-pkgspath {
42 # if the bootstrap tools are for another platform, we should be testing
44 localSystem = if crossSystem != null then crossSystem else localSystem;
50 inherit (build) bootstrapFiles;
53 (import (test-pkgspath + "/pkgs/stdenv/darwin") args');
64 inherit (build) bootstrapFiles;