core/pkgs/stdenv/linux/bootstrap-tools-musl/default.nix

35 lines
508 B
Nix
Raw Normal View History

2024-06-30 08:12:46 +00:00
{
system,
bootstrapFiles,
extraAttrs,
}:
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
derivation (
{
name = "bootstrap-tools";
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
builder = bootstrapFiles.busybox;
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
args = [
"ash"
"-e"
./scripts/unpack-bootstrap-tools.sh
];
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
tarball = bootstrapFiles.bootstrapTools;
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
inherit system;
2024-05-02 00:46:19 +00:00
2024-06-30 08:12:46 +00:00
# Needed by the GCC wrapper.
langC = true;
langCC = true;
isGNU = true;
hardeningUnsupportedFlags = [
"fortify3"
"zerocallusedregs"
"trivialautovarinit"
];
}
// extraAttrs
)