2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
2008-01-28 19:43:03 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-07-28 11:55:54 +00:00
|
|
|
name = "pth-2.0.7";
|
2018-08-20 18:43:43 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/pth/${name}.tar.gz";
|
|
|
|
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
|
|
|
|
};
|
2008-01-28 19:43:03 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.isAarch32 ''
|
2012-11-15 10:18:38 +00:00
|
|
|
configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
|
2021-01-21 17:00:13 +00:00
|
|
|
'' + lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
2019-08-02 08:57:25 +00:00
|
|
|
configureFlagsArray+=("ac_cv_check_sjlj=ssjlj")
|
2012-11-15 10:18:38 +00:00
|
|
|
'';
|
2012-11-14 22:20:47 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-07-28 11:55:54 +00:00
|
|
|
description = "The GNU Portable Threads library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/pth";
|
2018-08-20 18:43:43 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.all;
|
2010-07-28 11:55:54 +00:00
|
|
|
};
|
2008-01-28 19:43:03 +00:00
|
|
|
}
|