mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +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 {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user