about summary refs log tree commit diff
path: root/pkgs/stdenv/linux/bootstrap-tools/default.nix
blob: 4450679983ff2fe64b2a57b3f11b286ec877ae3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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"
    "stackclashprotection"
    "trivialautovarinit"
    "zerocallusedregs"
  ];
} // extraAttrs)