about summary refs log tree commit diff
path: root/pkgs/stdenv/linux/bootstrap-tools/default.nix
blob: ad2449cfd9ff705711ac846664fcdf8d1c461f23 (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" ];
} // extraAttrs)