Skip to content

herdr-core, herdr-desktop: support aarch64-darwin - #1

Closed
iamppborah wants to merge 7 commits into
tophcodes:init-herdrfrom
iamppborah:herdr-darwin-compiler-rt
Closed

iamppborah wants to merge 7 commits into
tophcodes:init-herdrfrom
iamppborah:herdr-darwin-compiler-rt

Conversation

@iamppborah

Copy link
Copy Markdown

Darwin support for NixOS#581031, as asked there. This branch is your 4d7cc4a plus one commit of mine, so merging it brings both into init-herdr.

My commit keeps compiler_rt bundled on Darwin. Ghostty's libsystem_override.sh extracts compiler_rt.o from the libghostty-vt archive there, so bundle_compiler_rt = false fails the build with ar: compiler_rt.o: not found in archive. The substitution now runs only on Linux, in both packages; bundle_ubsan_rt = false stays on everywhere. Feel free to squash it into your Darwin commit.

Tested on aarch64-darwin (MacBook Air M1):

  • herdr-core 0.1.15 and herdr-desktop 0.1.10 build; both version checks pass.
  • Herdr.app is built with a valid Info.plist; herdr-app links only system frameworks plus libiconv.
  • Without my commit, 4d7cc4a fails as you saw. The current init-herdr head fails earlier, at ld: unknown option: --strip-debug.
  • On Linux both packages still get the compiler_rt substitution (checked with nix eval, not built).
  • Not yet tested: launching the Nix-built app.

One question on 4d7cc4a: the gpui Touch Bar patch isn't needed to build, and zed-industries/zed#65186 is still open upstream. It's ~150 lines changing how accessibility is attached to every window, and I can't test it (no Touch Bar here). Maybe leave it out until Zed merges it, or report it to herdr-app?

🤖 Generated with Claude Code

tophcodes and others added 7 commits October 31, 2026 11:34
Assisted-by: Claude Code (claude-opus-5-5)
Co-authored-by: Philip Munksgaard <[email protected]>
Assisted-by: Claude Code (claude-opus-5-5)
Co-authored-by: Philip Munksgaard <[email protected]>
Assisted-by: Claude Code (claude-opus-5-5)
On Darwin, Ghostty's libsystem_override.sh extracts compiler_rt.o from
the libghostty-vt archive, so disabling bundle_compiler_rt fails the
build with "ar: compiler_rt.o: not found in archive". Only disable it on
Linux; bundle_ubsan_rt stays disabled everywhere.
The build does not need it, and the fix (zed-industries/zed#65186) is
still unmerged upstream.
@iamppborah

Copy link
Copy Markdown
Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review
Commit: 515b0e58d4632f42bd950bef7d3afe2901b83a5a


aarch64-darwin

✅ 2 packages built:
  • herdr-core
  • herdr-desktop

@tophcodes
tophcodes force-pushed the init-herdr branch 2 times, most recently from bd48947 to fa13b4a Compare November 1, 2026 12:52
@tophcodes

Copy link
Copy Markdown
Owner

Thank you, I added your changes to NixOS#581031 and added some more mac changes myself. Can you check the build and desktop app against the nixpkgs PR?

@tophcodes tophcodes closed this Nov 1, 2026
@iamppborah
iamppborah deleted the herdr-darwin-compiler-rt branch November 1, 2026 14:46
@iamppborah

iamppborah commented Nov 1, 2026 •

Copy link
Copy Markdown
Author

Yeah, adding the nixpkgs review (aarch64-darwin) in sometime :)

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.

2 participants