2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPackages,
|
|
|
|
newScope,
|
|
|
|
overrideCC,
|
|
|
|
crossLibcStdenv,
|
|
|
|
libcCross,
|
2024-05-02 00:46:19 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
lib.makeScope newScope (
|
|
|
|
self: with self; {
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
cygwinSetup = callPackage ./cygwin-setup { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
dlfcn = callPackage ./dlfcn { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
w32api = callPackage ./w32api { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mingwrt = callPackage ./mingwrt { };
|
|
|
|
mingw_runtime = mingwrt;
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mingw_w64 = callPackage ./mingw-w64 { stdenv = crossLibcStdenv; };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
# FIXME untested with llvmPackages_16 was using llvmPackages_8
|
|
|
|
crossThreadsStdenv = overrideCC crossLibcStdenv (
|
|
|
|
if stdenv.hostPlatform.useLLVM or false then
|
|
|
|
buildPackages.llvmPackages.clangNoLibcxx
|
|
|
|
else
|
|
|
|
buildPackages.gccWithoutTargetLibc.override (old: {
|
|
|
|
bintools = old.bintools.override { libc = libcCross; };
|
|
|
|
libc = libcCross;
|
|
|
|
})
|
|
|
|
);
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mingw_w64_headers = callPackage ./mingw-w64/headers.nix { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mingw_w64_pthreads = callPackage ./mingw-w64/pthreads.nix { stdenv = crossThreadsStdenv; };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mcfgthreads_pre_gcc_13 = callPackage ./mcfgthreads/pre_gcc_13.nix { stdenv = crossThreadsStdenv; };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
mcfgthreads = callPackage ./mcfgthreads { stdenv = crossThreadsStdenv; };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
npiperelay = callPackage ./npiperelay { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
pthreads = callPackage ./pthread-w32 { };
|
2024-05-02 00:46:19 +00:00
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
libgnurx = callPackage ./libgnurx { };
|
|
|
|
}
|
|
|
|
)
|