about summary refs log tree commit diff
path: root/pkgs/os-specific/windows/mingw-w64/pthreads.nix
blob: 3c5fab4fa708f2dcae96fee88cfcc45e4156d5c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ 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
  '';
}