Repository navigation
fix(aaron): drop the ld64 GUI pin, fixed upstream - #911
Merged
Merged
Conversation
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
force-pushed
the
audit/drop-darwin-gui-pin
branch
from
August 25, 2026 15:30
1b35e52 to
da7ebac
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Removes the
nixpkgs-darwin-gui-pinflake input and everything that hung off it: the overlay that swappedaudacityandmoonlight-qtin 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 atpkgs/niri-wrapped/default.nix— the closest surviving guard, a temporaryniriusoverride behind alib.assertMsgonlib.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:
23c052050(2026-06-26, "ld64: dropx86_64-darwinsupport") removed ld64'shardeningDisable = [ "libcxxhardeningfast" ];. The pin revd407951(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 onaarch64-darwintoo. Fixes: 23c05205". That commit is present in the locked nixpkgs56c02bc.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, andmoonlight-qthas 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-desktopfor the same reason.How I verified
CI built the darwin closure and it went green. The
aaronjob 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 loggedaaron 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:
nix eval .#darwinConfigurations.aaron.pkgs.{audacity,moonlight-qt}.outPathafter the change yields/nix/store/slg1z221y2j6wq7fy9wdhw3nn4j6zngh-audacity-3.7.8and/nix/store/qz4p1rlzbqkixbc3gm22ip08zzhmgzq7-moonlight-qt-6.1.0; both narinfos return HTTP 200 fromcache.nixos.org.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 theflake.lockdiff contains nothing else.nix eval .#darwinConfigurations.aaron.config.system.build.toplevel.drvPathevaluates;.config.warningsis[].nix eval .#nixosConfigurations.{tower,leod,pi}.config.system.build.toplevel.drvPathall evaluate; all three.config.warningsare[].nix flake check --no-build→ "all checks passed!"nix fmt(0 files changed),statix check .anddeadnix --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