1 { lib, stdenv, fetchzip }:
4 pname = "pthreads-w32";
8 url = "https://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz";
9 sha256 = "1s8iny7g06z289ahdj0kzaxj0cd3wvjbd8j3bh9xlg7g444lhy9w";
12 makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" "GC-static" ];
17 install -D libpthreadGC2.a $out/lib/libpthread.a
23 description = "POSIX threads library for Windows";
24 homepage = "https://sourceware.org/pthreads-win32";
25 license = licenses.lgpl21Plus;
27 platforms = platforms.windows;