I found a nice tutorial how to cross-compile and link a static binary on Macos for Linux with Rust. However the tutorial uses brew to install the musl-cross toolchain.
Is the musl-cross package available on Nix for Macos? The “nix search musl” shows “musl” and “muslCross” but this are only the musl libraries and not the whole toolchain that let me cross-compile the Rust program. The later is not even installable on Macos.