mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
freshBootstrapTools.bootstrapTools: extract as a package
This commit is contained in:
parent
217c61a1d7
commit
003725a97d
25
pkgs/stdenv/darwin/bootstrap-tools.nix
Normal file
25
pkgs/stdenv/darwin/bootstrap-tools.nix
Normal 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" ];
|
||||||
|
}
|
@ -291,23 +291,8 @@ rec {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
bootstrapTools = derivation {
|
bootstrapTools = pkgs.callPackage ./bootstrap-tools.nix {
|
||||||
inherit (stdenv.hostPlatform) system;
|
inherit (bootstrapFiles) bootstrapTools unpack;
|
||||||
|
|
||||||
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" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
test = derivation {
|
test = derivation {
|
||||||
|
Loading…
Reference in New Issue
Block a user