You can try using this Docker image. It supports cross compiling directly, but you can also look at how the Docker image is setup to get more info about how you might do it yourself.
[https://forum.nim-lang.org/t/5569](https://forum.nim-lang.org/t/5569)
