Skip to content

fix(aaron): drop the ld64 GUI pin, fixed upstream - #911

Merged
etrobert merged 1 commit into
mainfrom
audit/drop-darwin-gui-pin
Aug 25, 2026
Merged

etrobert merged 1 commit into
mainfrom
audit/drop-darwin-gui-pin

Conversation

@etrobert

@etrobert etrobert commented Aug 25, 2026 •

Copy link
Copy Markdown
Owner

What

Removes the nixpkgs-darwin-gui-pin flake input and everything that hung off it: the overlay that swapped audacity and moonlight-qt in on aaron, and the version-equality assertions meant to guard it.

That pin was also CLAUDE.md's worked example for the "Self-Cleaning Guards" section, so the example paragraph now points at pkgs/niri-wrapped/default.nix — the closest surviving guard, a temporary nirius override behind a lib.assertMsg on lib.versionOlder nirius.version "0.9.0" that fails once nixpkgs catches up.

Why

The pin existed to dodge an aarch64-darwin ld64 SIGTRAP. That bug is fixed in the nixpkgs this flake already locks:

  • nixpkgs 23c052050 (2026-06-26, "ld64: drop x86_64-darwin support") removed ld64's hardeningDisable = [ "libcxxhardeningfast" ];. The pin rev d407951 (2026-07-05) is the last nixos-unstable rev that still had it — it predates the regression rather than fixing it.
  • dd5346915 ("ld64: disable hardening again", merged 2026-07-15 via #536365) put the flag back, with the commit message "Turn out this happens on aarch64-darwin too. Fixes: 23c05205". That commit is present in the locked nixpkgs 56c02bc.
  • Tracking issue NixOS/nixpkgs#541734 ("ld64 SIGTRAP linking libgtk-4.1.dylib") is closed, 2026-07-15.

The guard could never have retired the pin on its own. It compared unpinnedPkgs.${name}.version == pkgs.${name}.version, but both the regression and its fix are derivation changes at an unchanged version — so it would only ever fire on an unrelated version bump, and moonlight-qt has had none in over a year. Meanwhile the pin cost an extra full nixpkgs fetch plus two extra imports on every aaron eval, and froze both apps to a pre-ffmpeg-8 closure.

There is repo precedent: 8546945 already unpinned telegram-desktop for the same reason.

How I verified

CI built the darwin closure and it went green. The aaron job succeeded in 4m12s, building .#darwinConfigurations.aaron.config.system.build.toplevel — so both apps realise at the locked rev, not just substitute. One caveat stands: the "Pick runner" job logged aaron status: offline; picked "macos-latest", so this was a GitHub-hosted runner, not aaron itself. aaron runs a macOS 27 beta, which that result does not cover.

Darwin is not buildable from leod, so locally I checked evaluation and cache presence only:

  • Both derivations are already in the binary cache. nix eval .#darwinConfigurations.aaron.pkgs.{audacity,moonlight-qt}.outPath after the change yields /nix/store/slg1z221y2j6wq7fy9wdhw3nn4j6zngh-audacity-3.7.8 and /nix/store/qz4p1rlzbqkixbc3gm22ip08zzhmgzq7-moonlight-qt-6.1.0; both narinfos return HTTP 200 from cache.nixos.org.
  • Hydra job status, nixpkgs/trunk, aarch64-darwin: audacity → buildstatus 0, audacity-3.7.8; moonlight-qt → buildstatus 0, moonlight-qt-6.1.0.
  • nix flake lock → "Removed input 'nixpkgs-darwin-gui-pin'", and the flake.lock diff contains nothing else.
  • nix eval .#darwinConfigurations.aaron.config.system.build.toplevel.drvPath evaluates; .config.warnings is [].
  • nix eval .#nixosConfigurations.{tower,leod,pi}.config.system.build.toplevel.drvPath all evaluate; all three .config.warnings are [].
  • nix flake check --no-build → "all checks passed!"
  • nix fmt (0 files changed), statix check . and deadnix --fail . both clean.

If aaron's own rebuild ever fails on either app, the right response is not to re-anchor the old guard to drvPath (it would trip on nearly every nixpkgs bump) but to re-pin against the specific upstream regression.

🤖 Generated with Claude Code

https://claude.ai/code/session_0194UuhbPuMdozpEte5FfxP4

nixpkgs 23c052050 (2026-06-26) dropped ld64's
`hardeningDisable = [ "libcxxhardeningfast" ]`, which made ld64 SIGTRAP
when linking Qt/wxWidgets apps on aarch64-darwin. The pin at d407951 was
the last nixos-unstable rev before that landed. dd5346915 ("ld64: disable
hardening again", 2026-07-15) put the flag back and is in the currently
locked nixpkgs 56c02bc; tracking issue NixOS/nixpkgs#541734 is closed.

The guard could never retire the pin: it compared versions across the two
revs, but the regression and its fix are derivation changes at the same
version, so it would only ever fire on an unrelated bump — and
moonlight-qt has not had one in over a year.

This pin was CLAUDE.md's worked example for "Self-Cleaning Guards", so
that paragraph now points at `pkgs/niri-wrapped/default.nix`, the closest
surviving guard: a temporary override behind a `lib.assertMsg` that fails
once nixpkgs catches up.

Verified from leod (darwin is not buildable here): the aarch64-darwin
store paths the locked nixpkgs now yields for both apps —
audacity-3.7.8 slg1z221… and moonlight-qt-6.1.0 qz4p1rlz… — are present
in cache.nixos.org, so Hydra built these exact derivations. Both jobs are
buildstatus 0 in nixpkgs/trunk. aaron and the three NixOS hosts still
evaluate with no warnings, `nix flake check --no-build` passes, and
`nix flake lock` removes the input and nothing else.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0194UuhbPuMdozpEte5FfxP4
@etrobert
etrobert force-pushed the audit/drop-darwin-gui-pin branch from 1b35e52 to da7ebac Compare August 25, 2026 15:30
@etrobert
etrobert merged commit e55c3fe into main Aug 25, 2026
18 checks passed
@etrobert
etrobert deleted the audit/drop-darwin-gui-pin branch August 25, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant