mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 12:38:41 +03:00
mcfgthreads: Init from git
This commit is contained in:
parent
0a63190c31
commit
06c5e811e6
@ -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 { };
|
||||
|
||||
|
19
pkgs/os-specific/windows/mcfgthreads/default.nix
Normal file
19
pkgs/os-specific/windows/mcfgthreads/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "mcfgthreads";
|
||||
version = "git";
|
||||
src = fetchFromGitHub {
|
||||
owner = "lhmouse";
|
||||
repo = "mcfgthread";
|
||||
rev = "9570e5ca7b98002d707c502c919d951bf256b9c6";
|
||||
sha256 = "10y2x3x601a7c1hkd6zlr3xpfsnlr05xl28v23clf619756a5755";
|
||||
};
|
||||
# Don't want prebuilt binaries sneaking in.
|
||||
postUnpack = ''
|
||||
rm -r "$sourceRoot/debug" "$sourceRoot/release"
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
];
|
||||
}
|
@ -7577,7 +7577,7 @@ in
|
||||
../development/compilers/gcc/libstdc++-hook.sh;
|
||||
|
||||
crossLibcStdenv = overrideCC stdenv
|
||||
(if stdenv.targetPlatform.useLLVM or false
|
||||
(if stdenv.hostPlatform.useLLVM or false
|
||||
then buildPackages.llvmPackages_8.lldClangNoLibc
|
||||
else buildPackages.gccCrossStageStatic);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user