1{
2 lib,
3 stdenv,
4 buildPackages,
5 pkgs,
6 newScope,
7 overrideCC,
8 stdenvNoLibc,
9}:
10
11lib.makeScope newScope (
12 self: with self; {
13 dlfcn = callPackage ./dlfcn { };
14
15 mingw_w64 = callPackage ./mingw-w64 {
16 stdenv = stdenvNoLibc;
17 };
18
19 # FIXME untested with llvmPackages_16 was using llvmPackages_8
20 crossThreadsStdenv = overrideCC stdenvNoLibc (
21 if stdenv.hostPlatform.useLLVM or false then
22 buildPackages.llvmPackages.clangNoLibcxx
23 else
24 buildPackages.gccWithoutTargetLibc.override (old: {
25 bintools = old.bintools.override {
26 libc = pkgs.libc;
27 };
28 libc = pkgs.libc;
29 })
30 );
31
32 mingw_w64_headers = callPackage ./mingw-w64/headers.nix { };
33
34 mingw_w64_pthreads = lib.warn "windows.mingw_w64_pthreads is deprecated, windows.pthreads should be preferred" self.pthreads;
35
36 mcfgthreads = callPackage ./mcfgthreads { stdenv = crossThreadsStdenv; };
37
38 npiperelay = callPackage ./npiperelay { };
39
40 pthreads = callPackage ./mingw-w64/pthreads.nix { stdenv = crossThreadsStdenv; };
41
42 libgnurx = callPackage ./libgnurx { };
43
44 sdk = callPackage ./msvcSdk { };
45 }
46)