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