2018-08-10 18:00:49 +02:00
|
|
|
{ stdenv, mingw_w64 }:
|
2017-06-19 17:51:01 +02:00
|
|
|
|
2018-08-10 18:00:49 +02:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${mingw_w64.name}-pthreads";
|
|
|
|
inherit (mingw_w64) src meta;
|
2017-06-19 17:51:01 +02:00
|
|
|
|
2021-10-12 15:45:54 +02: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"
|
|
|
|
];
|
|
|
|
|
2017-06-19 17:51:01 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd mingw-w64-libraries/winpthreads
|
|
|
|
'';
|
|
|
|
}
|