freshBootstrapTools.bootstrapTools: extract as a package

This commit is contained in:
Philip Taron 2024-07-27 10:11:42 -07:00
parent 217c61a1d7
commit 003725a97d
No known key found for this signature in database
2 changed files with 27 additions and 17 deletions

View File

@ -0,0 +1,25 @@
{
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" ];
}

View File

@ -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 {