I am trying to submit a PR for nimforum and nimble test is failing because it could not load libsass.dylib, which is in /opt/local/lib/
I set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH to /opt/local/lib/
I'm on NixOS and I had trouble with something similar when using sqlite, this is what I did to tell nim where libsqlite3.so is located
# config.nims
if existsEnv("NIX_SQLITE_PATH"):
--dynlibOverride:sqlite
--passL:"$NIX_SQLITE_PATH/libsqlite3.so"
Being NIX_SQLITE_PATH an environment variable containing the path where libsqlite3.so is located.