summaryrefslogtreecommitdiffstats
path: root/pkgs/stdenv/linux/bootstrap-tools/glibc.nix
blob: a4cc15fb4e0dc8f8bed2be0f30a4946be2cfafb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  system,
  bootstrapFiles,
  extraAttrs,
}:

derivation (
  {
    name = "bootstrap-tools";

    builder = bootstrapFiles.busybox;

    args = [
      "ash"
      "-e"
      ./glibc/unpack-bootstrap-tools.sh
    ];

    tarball = bootstrapFiles.bootstrapTools;

    inherit system;

    # Needed by the GCC wrapper.
    langC = true;
    langCC = true;
    isGNU = true;
    hardeningUnsupportedFlags = [
      "fortify3"
      "shadowstack"
      "pacret"
      "stackclashprotection"
      "trivialautovarinit"
      "zerocallusedregs"
    ];
  }
  // extraAttrs
)