The Hydra failure on x86_64-darwin (build 330314747) bails in
installCheckPhase with `sh: codesign: command not found`. Adding
`darwin.sigtool` to nativeBuildInputs gets past that but exposes
deeper test breakage:
codesign_allocate: fatal error: file not in an order that can be
processed (symbol table out of place): hello, vla_test, asm-c-connect
tcc: error: undefined symbol '___va_arg' (abitest-tcc.exe)
i.e. tcc's Mach-O output isn't in the layout codesign_allocate
expects, and abitest needs a __va_arg helper tcc doesn't provide on
x86_64-darwin. These are upstream tcc bugs about its DARWIN-OUTPUT
code generation; the tcc binary itself works fine (verified
`tcc -run hello.c` on macOS 15.6.1 Sequoia).
aarch64-darwin already disables doInstallCheck entirely for its own
atomic-helper issue. Extending the same exclusion to x86_64-darwin is
the consistent fix. The preInstallCheck that removed tests/tests2/{108,
114}* was a partial fix for the same shape — now subsumed.
Fixes https://hydra.nixos.org/build/330314747
Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
The postPatch widens libtool's macOS-version match from "10.*" to "*"
so the generated `configure` recognises Big Sur and later. It was
gated on (isDarwin && isAarch64), which left x86_64-darwin failing at
the link step with "ld: symbol(s) not found for architecture x86_64"
because the case clause never matches modern macOS versions there
either.
The substitution targets the host-OS match in the configure script —
arch-agnostic. Gate on isDarwin alone. Verified via Hydra failure
at https://hydra.nixos.org/build/330206792 and a local x86_64-darwin
build (macOS 15.6.1 Sequoia, Intel) that now lands clean. Linux
derivation hash unchanged (postPatch is a no-op on isLinux either
way), so no rebuild fan-out elsewhere.
Also switched --replace to --replace-fail so a future configure
script change that drops the "10.*)" pattern surfaces loudly instead
of silently no-op'ing.
Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>