stravaweblib: use nix-update-script (#358503)
[NixPkgs.git] / pkgs / os-specific / windows / pthread-w32 / default.nix
blob0db99bf4c97dc92a350712c25ef63b1ba6f8ff0b
2   lib,
3   stdenv,
4   fetchzip,
5 }:
7 stdenv.mkDerivation {
8   pname = "pthreads-w32";
9   version = "2.9.1";
11   src = fetchzip {
12     url = "https://sourceware.org/pub/pthreads-win32/pthreads-w32-2-9-1-release.tar.gz";
13     sha256 = "1s8iny7g06z289ahdj0kzaxj0cd3wvjbd8j3bh9xlg7g444lhy9w";
14   };
16   makeFlags = [
17     "CROSS=${stdenv.cc.targetPrefix}"
18     "GC-static"
19   ];
21   installPhase = ''
22     runHook preInstall
24     install -D libpthreadGC2.a $out/lib/libpthread.a
26     runHook postInstall
27   '';
29   meta = with lib; {
30     description = "POSIX threads library for Windows";
31     homepage = "https://sourceware.org/pthreads-win32";
32     license = licenses.lgpl21Plus;
33     maintainers = [ ];
34     platforms = platforms.windows;
35   };