8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
23 lines
668 B
Nix
23 lines
668 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pth-2.0.7";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/pth/${name}.tar.gz";
|
|
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
|
|
};
|
|
|
|
preConfigure = stdenv.lib.optionalString stdenv.isAarch32 ''
|
|
configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
|
|
'' + stdenv.lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
|
configureFlagsArray+=("ac_cv_check_sjlj=ssjlj")
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "The GNU Portable Threads library";
|
|
homepage = "https://www.gnu.org/software/pth";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|