1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
7 url = "mirror://gnu/pth/${name}.tar.gz";
8 sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
11 preConfigure = lib.optionalString stdenv.isAarch32 ''
12 configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
13 '' + lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
14 configureFlagsArray+=("ac_cv_check_sjlj=ssjlj")
18 description = "The GNU Portable Threads library";
19 homepage = "https://www.gnu.org/software/pth";
20 license = licenses.lgpl21Plus;
21 platforms = platforms.all;