mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
622c2826d1
Manually written makefile relies on correct dependencies specificed explicitly in the Makefile. Unfortunately they at least lack dependency on common pre-generated 'pth_p.h' file. Let's disable parallel build explicitly.
31 lines
945 B
Nix
31 lines
945 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pth-2.0.7";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/pth/${name}.tar.gz";
|
|
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
|
|
};
|
|
|
|
preConfigure = lib.optionalString stdenv.isAarch32 ''
|
|
configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
|
|
'' + lib.optionalString (stdenv.hostPlatform.libc == "glibc") ''
|
|
configureFlagsArray+=("ac_cv_check_sjlj=ssjlj")
|
|
'';
|
|
|
|
# Fails parallel build due to missing dependency on autogenrated
|
|
# 'pth_p.h' file:
|
|
# ./shtool scpp -o pth_p.h ...
|
|
# ./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pth_uctx.c
|
|
# pth_uctx.c:31:10: fatal error: pth_p.h: No such file
|
|
enableParallelBuilding = false;
|
|
|
|
meta = with lib; {
|
|
description = "The GNU Portable Threads library";
|
|
homepage = "https://www.gnu.org/software/pth";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|