Skip to content

Add Nix flake for native Apple Silicon dev builds - #965

Open
jcmendez wants to merge 1 commit into
Swordfish90:masterfrom
jcmendez:nix-arm64-build
Open

Add Nix flake for native Apple Silicon dev builds#965
jcmendez wants to merge 1 commit into
Swordfish90:masterfrom
jcmendez:nix-arm64-build

Conversation

@jcmendez

Copy link
Copy Markdown

Summary

  • Adds a flake.nix/flake.lock providing a nix develop shell with Qt 6 built natively for aarch64-darwin (and other systems), so contributors on Apple Silicon can get a working native (non-Rosetta) toolchain without Homebrew or the Qt installer.
  • Adds scripts/dev-run.sh, which builds the project with that toolchain and finalizes the resulting .app bundle (embeds a qt.conf pointing at the Nix Qt plugin/QML paths, and merges in the qmltermwidget plugin) so the built app can also be launched by double-clicking in Finder afterwards, without needing the script or any env vars at launch time.

This is purely additive (new files only) and doesn't touch the existing qmake/CI build path.

Test plan

  • nix develop provides qmake resolving to a native arm64 Qt 6 (verified via lipo -info)
  • ./scripts/dev-run.sh builds and runs the app
  • Built .app launches successfully via open cool-retro-term.app (Finder double-click equivalent) with a clean environment

Provides a devShell with Qt 6 built natively for aarch64-darwin, plus a
dev-run.sh script that builds via qmake/make and finalizes the .app
bundle (embedded qt.conf + merged QML plugin dir) so it can also be
launched by double-clicking in Finder, without needing Qt installed
system-wide or a wrapper script at launch time.
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