Please add "path="$lib/std"" to nim.cfg or move/link /usr/nim/lib/std/sha1.nim to an existing library path.
Apparently this is an upstream issue. Sorry for wasting your time.
https://github.com/nim-lang/Nim/blob/devel/tools/niminst/niminst.nim#L18 suggests that import syntax is: # hi.nim: import std / sha1 Seems to work: $ nim compile hi $ ./hi Sam syntax is used throughout the comiler. Feel free to raise issue upstream. At least documentation cound be improved to show a working example for sha1 module.
(In reply to Sergei Trofimovich from comment #2) Hi Sergei, Thanks Upstream is aware of the issue. As far as I know the sha1 module will be added to an in-path location at some point. I concur. The documentation could do with an example or a note.