blob: 3b143efed1d7031a79e85ae0d1b9df6cf3316d72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ stdenv, mingw_w64 }:
stdenv.mkDerivation {
name = "${mingw_w64.name}-pthreads";
inherit (mingw_w64) 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
'';
}
|