about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/npth/default.nix
blob: 208924bfd7b56709eb1e4328bbafabe4d7f91c72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "npth";
  version = "1.6";

  src = fetchurl {
    url = "mirror://gnupg/npth/npth-${version}.tar.bz2";
    sha256 = "1lg2lkdd3z1s3rpyf88786l243adrzyk9p4q8z9n41ygmpcsp4qk";
  };

  doCheck = true;

  meta = with lib; {
    description = "The New GNU Portable Threads Library";
    longDescription = ''
      This is a library to provide the GNU Pth API and thus a non-preemptive
      threads implementation.

      In contrast to GNU Pth is is based on the system's standard threads
      implementation.  This allows the use of libraries which are not
      compatible to GNU Pth.  Experience with a Windows Pth emulation showed
      that this is a solid way to provide a co-routine based framework.
    '';
    homepage = "http://www.gnupg.org";
    license = licenses.lgpl3;
    platforms = platforms.all;
  };
}