Try running nim with specifying lib PATH: `nim --lib:/usr/lib/nim ...` . If that works, you or the package maintainer probably overwritten this config option with wrong directory.
Check nim's config files for "/usr/lib/nim/lib"; list all active configs with `nim --hints:on` command while in your project's directory. It's also would be helpful to know: * What linux distro and version you are using? * How did you install and update Nim?