Skip to content

build: fix aarch64-darwin build - #280

Merged
eval-exec merged 1 commit into
eval-exec:mainfrom
jonhermansen:main
Aug 26, 2026
Merged

eval-exec merged 1 commit into
eval-exec:mainfrom
jonhermansen:main

Conversation

@jonhermansen

Copy link
Copy Markdown
Contributor
  • ioctl request arg is c_ulong on BSD; cast TIOCEXCL/TIOCGPGRP with as _ so the i32 constants coerce to u64 on Darwin (matches the existing TIOCSCTTY site).
  • libotf's meta.platforms excludes Darwin; move it to the Linux-only buildInputs branch. Text shaping on macOS is covered by harfbuzz.
  • xtask fresh-build re-signs patched binaries with codesign on macOS, which isn't in the Nix sandbox PATH. Add darwin.sigtool to nativeBuildInputs — it ships a codesign shim that handles ad-hoc --sign - signing.

- ioctl request arg is c_ulong on BSD; cast TIOCEXCL/TIOCGPGRP with `as _`
  so the i32 constants coerce to u64 on Darwin (matches the existing
  TIOCSCTTY site).
- libotf's meta.platforms excludes Darwin; move it to the Linux-only
  buildInputs branch. Text shaping on macOS is covered by harfbuzz.
- xtask fresh-build re-signs patched binaries with `codesign` on macOS,
  which isn't in the Nix sandbox PATH. Add darwin.sigtool to
  nativeBuildInputs — it ships a codesign shim that handles ad-hoc
  `--sign -` signing.

@eval-exec eval-exec left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@eval-exec
eval-exec merged commit 292fc7c into eval-exec:main Aug 26, 2026
1 check passed
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