summary refs log tree commit diff
path: root/pkgs/os-specific/windows/default.nix
blob: 7f1634d5c0b364e7577a876af0e900bf51f07000 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ stdenv, buildPackages
, newScope, overrideCC, crossLibcStdenv, libcCross
}:

stdenv.lib.makeScope newScope (self: with self; {

  cygwinSetup = callPackage ./cygwin-setup { };

  jom = callPackage ./jom { };

  w32api = callPackage ./w32api { };

  mingwrt = callPackage ./mingwrt { };
  mingw_runtime = mingwrt;

  mingw_w64 = callPackage ./mingw-w64 {
    stdenv = crossLibcStdenv;
  };

  crossThreadsStdenv = overrideCC crossLibcStdenv
    (if stdenv.hostPlatform.useLLVM or false
     then buildPackages.llvmPackages_8.lldClangNoLibcxx
     else buildPackages.gccCrossStageStatic.override (old: {
       bintools = old.bintools.override {
         libc = libcCross;
       };
       libc = libcCross;
     }));

  mingw_w64_headers = callPackage ./mingw-w64/headers.nix { };

  mingw_w64_pthreads = callPackage ./mingw-w64/pthreads.nix {
    stdenv = crossThreadsStdenv;
  };

  mcfgthreads = callPackage ./mcfgthreads {
    stdenv = crossThreadsStdenv;
  };

  pthreads = callPackage ./pthread-w32 { };

  wxMSW = callPackage ./wxMSW-2.8 { };

  libgnurx = callPackage ./libgnurx { };
})