2021-01-15 15:45:37 +01:00
|
|
|
{ lib, stdenv, buildPackages
|
2019-11-11 04:35:59 +01:00
|
|
|
, newScope, overrideCC, crossLibcStdenv, libcCross
|
|
|
|
}:
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2021-01-15 15:45:37 +01:00
|
|
|
lib.makeScope newScope (self: with self; {
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
cygwinSetup = callPackage ./cygwin-setup { };
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2023-04-23 16:22:01 +02:00
|
|
|
dlfcn = callPackage ./dlfcn { };
|
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
w32api = callPackage ./w32api { };
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
mingwrt = callPackage ./mingwrt { };
|
|
|
|
mingw_runtime = mingwrt;
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
mingw_w64 = callPackage ./mingw-w64 {
|
|
|
|
stdenv = crossLibcStdenv;
|
|
|
|
};
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2024-01-24 18:31:45 +01:00
|
|
|
# FIXME untested with llvmPackages_16 was using llvmPackages_8
|
2019-11-11 04:35:59 +01:00
|
|
|
crossThreadsStdenv = overrideCC crossLibcStdenv
|
|
|
|
(if stdenv.hostPlatform.useLLVM or false
|
2024-01-24 18:31:45 +01:00
|
|
|
then buildPackages.llvmPackages.clangNoLibcxx
|
2023-06-16 23:15:36 +02:00
|
|
|
else buildPackages.gccWithoutTargetLibc.override (old: {
|
2019-11-11 04:35:59 +01:00
|
|
|
bintools = old.bintools.override {
|
|
|
|
libc = libcCross;
|
|
|
|
};
|
|
|
|
libc = libcCross;
|
|
|
|
}));
|
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
mingw_w64_headers = callPackage ./mingw-w64/headers.nix { };
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2019-11-11 04:35:59 +01:00
|
|
|
mingw_w64_pthreads = callPackage ./mingw-w64/pthreads.nix {
|
|
|
|
stdenv = crossThreadsStdenv;
|
|
|
|
};
|
|
|
|
|
2023-06-08 00:43:37 +02:00
|
|
|
mcfgthreads_pre_gcc_13 = callPackage ./mcfgthreads/pre_gcc_13.nix {
|
|
|
|
stdenv = crossThreadsStdenv;
|
|
|
|
};
|
|
|
|
|
2019-11-11 04:35:59 +01:00
|
|
|
mcfgthreads = callPackage ./mcfgthreads {
|
|
|
|
stdenv = crossThreadsStdenv;
|
|
|
|
};
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2022-05-18 14:15:04 +02:00
|
|
|
npiperelay = callPackage ./npiperelay { };
|
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
pthreads = callPackage ./pthread-w32 { };
|
2018-08-06 22:25:25 +02:00
|
|
|
|
2019-11-11 04:32:31 +01:00
|
|
|
libgnurx = callPackage ./libgnurx { };
|
|
|
|
})
|