at 25.11-pre 52 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPackages, 5 newScope, 6 overrideCC, 7 stdenvNoLibc, 8 libcCross, 9}: 10 11lib.makeScope newScope ( 12 self: with self; { 13 14 cygwinSetup = callPackage ./cygwin-setup { }; 15 16 dlfcn = callPackage ./dlfcn { }; 17 18 w32api = callPackage ./w32api { }; 19 20 mingwrt = callPackage ./mingwrt { }; 21 mingw_runtime = mingwrt; 22 23 mingw_w64 = callPackage ./mingw-w64 { 24 stdenv = stdenvNoLibc; 25 }; 26 27 # FIXME untested with llvmPackages_16 was using llvmPackages_8 28 crossThreadsStdenv = overrideCC stdenvNoLibc ( 29 if stdenv.hostPlatform.useLLVM or false then 30 buildPackages.llvmPackages.clangNoLibcxx 31 else 32 buildPackages.gccWithoutTargetLibc.override (old: { 33 bintools = old.bintools.override { 34 libc = libcCross; 35 }; 36 libc = libcCross; 37 }) 38 ); 39 40 mingw_w64_headers = callPackage ./mingw-w64/headers.nix { }; 41 42 mingw_w64_pthreads = callPackage ./mingw-w64/pthreads.nix { stdenv = crossThreadsStdenv; }; 43 44 mcfgthreads = callPackage ./mcfgthreads { stdenv = crossThreadsStdenv; }; 45 46 npiperelay = callPackage ./npiperelay { }; 47 48 pthreads = callPackage ./pthread-w32 { }; 49 50 libgnurx = callPackage ./libgnurx { }; 51 } 52)