Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655848 - dev-lang/nim-0.18.0: nim.cfg missing path to sha1 library
Summary: dev-lang/nim-0.18.0: nim.cfg missing path to sha1 library
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-16 08:56 UTC by Torro
Modified: 2018-05-30 11:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.