Unverified Commit 1441f48d authored by Philip Taron's avatar Philip Taron
Browse files

freshBootstrapTools: remove rec in favor of explicit attrset building

parent 91e1f1c9
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -27,14 +27,11 @@ let
      { };

  pkgs = import pkgspath ({ inherit localSystem; } // cross // custom-bootstrap);
in

rec {
  build = pkgs.callPackage ./stdenv-bootstrap-tools.nix { };
  inherit (build) bootstrapFiles;

  bootstrapTools = pkgs.callPackage ./bootstrap-tools.nix {
    inherit (bootstrapFiles) bootstrapTools unpack;
    inherit (build.bootstrapFiles) bootstrapTools unpack;
  };

  test = pkgs.callPackage ./test-bootstrap-tools.nix { inherit bootstrapTools; };
@@ -50,9 +47,19 @@ rec {
      args:
      let
        args' = args // {
          inherit bootstrapFiles;
          inherit (build) bootstrapFiles;
        };
      in
      (import (test-pkgspath + "/pkgs/stdenv/darwin") args');
  };
in
{
  inherit
    build
    bootstrapTools
    test
    test-pkgs
    ;

  inherit (build) bootstrapFiles;
}