mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
14f66d60a7
Patch every `derivation` call in the bootsrap process to add it a conditional `__contentAddressed` parameter. That way, passing `contentAddressedByDefault` means that the entire build closure of a system can be content addressed
19 lines
343 B
Nix
19 lines
343 B
Nix
{ system, bootstrapFiles, extraAttrs }:
|
|
|
|
derivation ({
|
|
name = "bootstrap-tools";
|
|
|
|
builder = bootstrapFiles.busybox;
|
|
|
|
args = [ "ash" "-e" ./scripts/unpack-bootstrap-tools.sh ];
|
|
|
|
tarball = bootstrapFiles.bootstrapTools;
|
|
|
|
inherit system;
|
|
|
|
# Needed by the GCC wrapper.
|
|
langC = true;
|
|
langCC = true;
|
|
isGNU = true;
|
|
} // extraAttrs)
|