In one of my nim(rod) programs (https://github.com/h3rald/hastyscribe) I need to statically link libmarkdown.a when compiling. This works, but unfortunately having dependencies like this is a bit of a pain when it comes to redistributing my program via babel (or better, nimble).
At present, I am currently distributing precompiled versions of libmarkdown.a for some platforms/architectures, and I added the following to my hastyscribe.nimrod.cfg file (https://github.com/h3rald/hastyscribe/blob/master/hastyscribe.nimrod.cfg):
@end
@end
@end
@end
Of course, for it to work the compiler needs to be able to find the files, so I added the following:
putenv: "LIBRARY_PATH=/tmp/nimble/hastyscribe/vendor:/tmp/nimble/hastyscribe_head/vendor:/private/tmp/nimble/hastyscribe_head/vendor:/private/tmp/nimble/hastyscribe/vendor"
...which worked great (well, ok, it's a bit of a hack) until nimble switched from saving downloaded sources in /tmp or /private/tmp, to a random directory.
How can I get this to work again with nimble? Is there any better way to do this?