Upstream `gcc-13` merged `mcfgthreads` support with a caveat: it's headers interface is not compatible with the patch `nixpkgs` was carrying in `gcc-12` and before. To keep both new (`gcc13`) and old (`_pre_gcc13`) version I held back previous `windows.mcfgthreads` attribute as `windows.mcfgthreads_pre_gcc_13`. It is used for `gcc` before 13. The change fixes the build of `pkgsCross.mingwW64.stdenv` itself and example program: $ nix build --impure --expr 'with import ./. {}; pkgsCross.mingwW64.re2c.override { stdenv = pkgsCross.mingwW64.gcc11Stdenv; }'
25 lines
560 B
Nix
25 lines
560 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mcfgthreads";
|
|
version = "git"; # unstable-2021-03-12, not in any branch
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lhmouse";
|
|
repo = "mcfgthread";
|
|
rev = "c446cf4fcdc262fc899a188a4bb7136284c34222";
|
|
sha256 = "1ib90lrd4dz8irq4yvzwhxqa86i5vxl2q2z3z04sf1i8hw427p2f";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
# Don't want prebuilt binaries sneaking in.
|
|
postUnpack = ''
|
|
rm -r "$sourceRoot/debug" "$sourceRoot/release"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
}
|