vuls: init at 0.27.0 (#348530)
[NixPkgs.git] / pkgs / os-specific / windows / pthread-w32 / default.nix
blobb17d839554f5bf5b016dc7e6d6ccf71fdbf2b355
1 { lib, stdenv, fetchzip }:
3 stdenv.mkDerivation {
4   pname = "pthreads-w32";
5   version = "2.9.1";
7   src = fetchzip {
8     url = "https://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz";
9     sha256 = "1s8iny7g06z289ahdj0kzaxj0cd3wvjbd8j3bh9xlg7g444lhy9w";
10   };
12   makeFlags = [ "CROSS=${stdenv.cc.targetPrefix}" "GC-static" ];
14   installPhase = ''
15     runHook preInstall
17     install -D libpthreadGC2.a $out/lib/libpthread.a
19     runHook postInstall
20   '';
22   meta = with lib; {
23     description = "POSIX threads library for Windows";
24     homepage = "https://sourceware.org/pthreads-win32";
25     license = licenses.lgpl21Plus;
26     maintainers = [ ];
27     platforms = platforms.windows;
28   };