Add Nix flake for native Apple Silicon dev builds - #965
Open
jcmendez wants to merge 1 commit into
Open
Conversation
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.
jcmendez
force-pushed
the
nix-arm64-build
branch
from
July 30, 2026 22:33
57979b3 to
469fa79
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.
Summary
flake.nix/flake.lockproviding anix developshell with Qt 6 built natively foraarch64-darwin(and other systems), so contributors on Apple Silicon can get a working native (non-Rosetta) toolchain without Homebrew or the Qt installer.scripts/dev-run.sh, which builds the project with that toolchain and finalizes the resulting.appbundle (embeds aqt.confpointing at the Nix Qt plugin/QML paths, and merges in theqmltermwidgetplugin) 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 developprovidesqmakeresolving to a nativearm64Qt 6 (verified vialipo -info)./scripts/dev-run.shbuilds and runs the app.applaunches successfully viaopen cool-retro-term.app(Finder double-click equivalent) with a clean environment