Unverified Commit 003725a9 authored by Philip Taron's avatar Philip Taron
Browse files

freshBootstrapTools.bootstrapTools: extract as a package

parent 217c61a1
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  bootstrapTools,
  unpack,
}:

builtins.derivation {
  inherit (stdenv.hostPlatform) system;

  name = "bootstrap-tools";
  builder = "${unpack}/bin/bash";

  args = [
    "${unpack}/bootstrap-tools-unpack.sh"
    bootstrapTools
  ];

  PATH = lib.makeBinPath [
    (builtins.placeholder "out")
    unpack
  ];

  allowedReferences = [ "out" ];
}
+2 −17
Original line number Diff line number Diff line
@@ -291,23 +291,8 @@ rec {
    '';
  };

  bootstrapTools = derivation {
    inherit (stdenv.hostPlatform) system;

    name = "bootstrap-tools";
    builder = "${bootstrapFiles.unpack}/bin/bash";

    args = [
      "${bootstrapFiles.unpack}/bootstrap-tools-unpack.sh"
        bootstrapFiles.bootstrapTools
    ];

    PATH = lib.makeBinPath [
      (placeholder "out")
      bootstrapFiles.unpack
    ];

    allowedReferences = [ "out" ];
  bootstrapTools = pkgs.callPackage ./bootstrap-tools.nix {
    inherit (bootstrapFiles) bootstrapTools unpack;
  };

  test = derivation {