blob: dbe371008f485e74c7d750c6ca3d51a23f19005c (
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
|
{
stdenv,
zig,
callPackage,
wrapCCWith,
wrapBintoolsWith,
overrideCC,
}:
{
# Provided for backward compatibility, as the `zig` derivation now sets
# setupHook.
hook = zig;
bintools-unwrapped = callPackage ./bintools.nix { inherit zig; };
bintools = wrapBintoolsWith { bintools = zig.bintools-unwrapped; };
cc-unwrapped = callPackage ./cc.nix { inherit zig; };
cc = wrapCCWith {
cc = zig.cc-unwrapped;
bintools = zig.bintools;
extraPackages = [ ];
nixSupport.cc-cflags = [
"-target"
"${stdenv.targetPlatform.system}-${stdenv.targetPlatform.parsed.abi.name}"
];
};
stdenv = overrideCC stdenv zig.cc;
fetchDeps = callPackage ./fetcher.nix { inherit zig; };
}
|