2024-06-20 14:57:18 +00:00
|
|
|
{ stdenv, mingw_w64_headers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2024-06-20 14:57:18 +00:00
|
|
|
pname = "mingw_w64-pthreads";
|
|
|
|
inherit (mingw_w64_headers) version src meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|