mcfgthreads: Init from git

This commit is contained in:
John Ericson
2019-11-11 00:25:24 -05:00
parent 0a63190c31
commit 06c5e811e6
3 changed files with 40 additions and 3 deletions
+20 -2
View File
@@ -1,4 +1,6 @@
{ stdenv, newScope, crossLibcStdenv }:
{ stdenv, buildPackages
, newScope, overrideCC, crossLibcStdenv, libcCross
}:
stdenv.lib.makeScope newScope (self: with self; {
@@ -15,9 +17,25 @@ stdenv.lib.makeScope newScope (self: with self; {
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 { };
mingw_w64_pthreads = callPackage ./mingw-w64/pthreads.nix {
stdenv = crossThreadsStdenv;
};
mcfgthreads = callPackage ./mcfgthreads {
stdenv = crossThreadsStdenv;
};
pthreads = callPackage ./pthread-w32 { };