nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05-pre 30 lines 945 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "pth-2.0.7"; 5 6 src = fetchurl { 7 url = "mirror://gnu/pth/${name}.tar.gz"; 8 sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj"; 9 }; 10 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") 15 ''; 16 17 # Fails parallel build due to missing dependency on autogenrated 18 # 'pth_p.h' file: 19 # ./shtool scpp -o pth_p.h ... 20 # ./libtool --mode=compile --quiet gcc -c -I. -O2 -pipe pth_uctx.c 21 # pth_uctx.c:31:10: fatal error: pth_p.h: No such file 22 enableParallelBuilding = false; 23 24 meta = with lib; { 25 description = "The GNU Portable Threads library"; 26 homepage = "https://www.gnu.org/software/pth"; 27 license = licenses.lgpl21Plus; 28 platforms = platforms.all; 29 }; 30}