-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Rust packages for darwin with Nix #5326
Conversation
Testing EDIT: After building for a long time it failed with:
Similar error for x86_64-darwin:
Inside of |
d23e801
to
c5b204e
Compare
FYI I updated my Darwin cross branch and will be rebasing it regularly against staging. It contains quite a few commits because it’s now based on top of my cctools/ld64 update work. The priority is to get the cctools/ld64 update merged after the release of 24.05 with clang 18 and Darwin cross following. |
c5b204e
to
6b95269
Compare
@reckenrode I updated the flake, now it builds but fails to link in the end:
In
This |
This is broken due to NixOS/nixpkgs#180771 and waiting for NixOS/nixpkgs#256590
nix build .#deltachat-rpc-server
works on main branch since 2c5a0ca, when running on arm64 macOS it builds a working binary.Cross-compilation does not work,
nix build .#deltachat-rpc-server-x86_64-darwin
fails and evennix build .#deltachat-rpc-server-aarch64-darwin
("cross-compiling" to self) fails due to infinite recursion.