1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "npth";
5 version = "1.6";
6
7 src = fetchurl {
8 url = "mirror://gnupg/npth/npth-${version}.tar.bz2";
9 sha256 = "1lg2lkdd3z1s3rpyf88786l243adrzyk9p4q8z9n41ygmpcsp4qk";
10 };
11
12 doCheck = true;
13
14 meta = with lib; {
15 description = "The New GNU Portable Threads Library";
16 longDescription = ''
17 This is a library to provide the GNU Pth API and thus a non-preemptive
18 threads implementation.
19
20 In contrast to GNU Pth is is based on the system's standard threads
21 implementation. This allows the use of libraries which are not
22 compatible to GNU Pth. Experience with a Windows Pth emulation showed
23 that this is a solid way to provide a co-routine based framework.
24 '';
25 homepage = "http://www.gnupg.org";
26 license = licenses.lgpl3;
27 platforms = platforms.all;
28 };
29}