Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655848

Summary: dev-lang/nim-0.18.0: nim.cfg missing path to sha1 library
Product: Gentoo Linux Reporter: Torro
Component: Current packagesAssignee: Sergei Trofimovich (RETIRED) <slyfox>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Torro 2018-05-16 08:56:47 UTC
Please add "path="$lib/std"" to nim.cfg or move/link /usr/nim/lib/std/sha1.nim to an existing library path.
Comment 1 Torro 2018-05-16 10:54:46 UTC
Apparently this is an upstream issue. Sorry for wasting your time.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-19 19:25:42 UTC
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.
Comment 3 Torro 2018-05-30 11:37:49 UTC
(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.