nixpkgs-suyu/pkgs/os-specific/windows/mingw-w64/pthreads.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
378 B
Nix
Raw Normal View History

2018-08-10 18:00:49 +02:00
{ stdenv, mingw_w64 }:
2018-08-10 18:00:49 +02:00
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
'';
}