mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
1009 B
Nix
33 lines
1009 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pth";
|
|
version = "2.0.7";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/pth/pth-${version}.tar.gz";
|
|
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
|
|
};
|
|
|
|
preConfigure = lib.optionalString stdenv.hostPlatform.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 = "GNU Portable Threads library";
|
|
mainProgram = "pth-config";
|
|
homepage = "https://www.gnu.org/software/pth";
|
|
license = licenses.lgpl21Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|