Thanks for your reply! could you explain in a little more detail how that repository answers the question?
I'm trying to compile Nim code to a static library and import it into C. I'm not trying to import C code into Nim, which is what all the examples in that repo seem to do.
