We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nix run works on macOS, however because it's built against our host system the binary fails inside of a container:
nix run
$ nix run 2023-10-30T14:53:25.596675Z WARN No .env found [...] $ nix build ".#dockerImage" && ./result | podman load $ podman run mercury {"msg":"exec container process `/nix/store/zi27abixfpaq0x4czinw34dyjwvb7lrb-mercury-0.0.0/bin/mercury`: Exec format error","level":"error","time":"2023-10-30T14:55:01.480708Z"}
We could potentially use crossSystem 1, however that loses access to the Nix binary cache, meaning we end up building the universe.
crossSystem
Thus our options for building the container on macOS are:
https://n8henrie.com/2023/09/crosscompile-rust-for-x86-linux-from-m1-mac-with-nix/ ↩
https://github.com/rustshop/flakebox ↩
https://github.com/alekseysidorov/nixpkgs-cross-overlay ↩
The text was updated successfully, but these errors were encountered:
This may also affect the container itself as per podman image inspect's Architecture.
podman image inspect
Architecture
Sorry, something went wrong.
No branches or pull requests
nix run
works on macOS, however because it's built against our host system the binary fails inside of a container:We could potentially use
crossSystem
1, however that loses access to the Nix binary cache, meaning we end up building the universe.Thus our options for building the container on macOS are:
Footnotes
https://n8henrie.com/2023/09/crosscompile-rust-for-x86-linux-from-m1-mac-with-nix/ ↩
https://github.com/rustshop/flakebox ↩
https://github.com/alekseysidorov/nixpkgs-cross-overlay ↩
The text was updated successfully, but these errors were encountered: