timemachine has a hard dependency on GTK 2, which is being removed from
nixpkgs. upstream also does not seem particularly active, with most
commits over five years ago, so this is unlikely to change:
https://github.com/swh/timemachine/commits/master.
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>
Two darwin packaging bugs prevented the macOS viewer from installing:
1. The postPatch appends `mv "$APPROOT" "$SRCDIR/"` to release/makemacapp.in,
but the script ends with `exit`, which fires an EXIT trap that `rm -rf`s
the temp dir. The appended move was unreachable dead code after `exit`, so
the freshly built `TigerVNC.app` was deleted before it could be staged.
Extend the gawk filter to also drop the trailing `exit` so the move runs.
2. postInstall looked for `TigerVNC Viewer ${version}.app`, but upstream's
APPROOT is `TigerVNC.app`. Update the move and the wrapper's `open` path.
Now that FLTK installs a usable CMake config on darwin (previous commit),
these two fixes let tigervnc configure, build, and install the viewer .app
end-to-end, so drop `broken = stdenv.hostPlatform.isDarwin`.
Assisted-by: Claude-Code:GLM-5.2
Apply upstream fixes for ambiguous HTTP request framing and inconsistent stathost authentication and routing. No upstream release containing these fixes is available.
Assisted-by: pi coding agent / Mika (OpenAI gpt-5.6-sol)
Also migrates away from them with these commands, using ast-grep 0.43.0
with these commands in bash (assisted by ChatGPT):
```bash
for old in extractType1 extractType2; do
ast-grep \
--lang nix \
--pattern "\$TOOLS.$old" \
--rewrite '$TOOLS.extract' \
--update-all \
pkgs
done
ast-grep \
--lang nix \
--pattern '$TOOLS.wrapType1' \
--rewrite '$TOOLS.wrapType2' \
--update-all \
pkgs
```
Assisted-by: GPT-5.6-Sol Medium via ChatGPT
part of #356387closes#532594
Validated using diffoscope, package output is identical with and without pcre other than store path.
No mention of pcre in upstream sources.