2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, mingw_w64 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${mingw_w64.name}-pthreads";
|
|
|
|
inherit (mingw_w64) src meta;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
configureFlags = [
|
|
|
|
# Rustc require 'libpthread.a' when targeting 'x86_64-pc-windows-gnu'.
|
|
|
|
# Enabling this makes it work out of the box instead of failing.
|
|
|
|
"--enable-static"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd mingw-w64-libraries/winpthreads
|
|
|
|
'';
|
|
|
|
}
|