nixpkgs/pkgs/os-specific/windows/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.2 KiB
Nix
Raw Normal View History

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