> If you know how to compile with clang and statically compile musl with Nim > please let me know
Yes, you can use Zig (its C compiler feature). Just install Zig itself and then install <https://github.com/enthus1ast/zigcc> , after that you can tell Nim to use `zigcc` as the Clang binary. Then you just have to specify a C compiler option `-target x86_64-linux-musl` for it to statically link with musl. By the way, another thing about Rust - are you actually sure `build-std` is needed? Nim has dead code elimination always enabled, so I'm not sure why do you mention the stdlib explicitly.
