about summary refs log tree commit diff
path: root/nixpkgs/pkgs/stdenv/linux/bootstrap-tools-musl/default.nix
blob: 6d2490acfa477a8a362749a3dc12d16338eb6ea2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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;
  hardeningUnsupportedFlags = [ "fortify3" "zerocallusedregs" "trivialautovarinit" ];
} // extraAttrs)