bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
16 lines
395 B
Nix
16 lines
395 B
Nix
{ stdenv, mingw_w64_headers }:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mingw_w64-pthreads";
|
|
inherit (mingw_w64_headers) version src meta;
|
|
|
|
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"
|
|
];
|
|
|
|
preConfigure = ''
|
|
cd mingw-w64-libraries/winpthreads
|
|
'';
|
|
}
|