Implements some helper procs for Nimble (Nim's package manager) support.
Procs
proc addPackage(conf: ConfigRef; packages: var PackageInfo; p: string; info: TLineInfo) {....raises: [ValueError, Exception, KeyError, IOError, ERecoverableError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect], forbids: [].}
- Source Edit
proc getPathVersionChecksum(p: string): tuple[name, version, checksum: string] {. ...raises: [], tags: [], forbids: [].}
- Splits path p in the format /home/user/.nimble/pkgs/package-0.1-febadeaea2345e777f0f6f8433f7f0a52edd5d1b into ("/home/user/.nimble/pkgs/package", "0.1", "febadeaea2345e777f0f6f8433f7f0a52edd5d1b") Source Edit
proc newVersion(ver: string): Version {....raises: [], tags: [], forbids: [].}
- Source Edit
proc nimblePath(conf: ConfigRef; path: AbsoluteDir; info: TLineInfo) {....raises: [ OSError, ValueError, Exception, KeyError, IOError, ERecoverableError], tags: [ ReadDirEffect, RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect], forbids: [].}
- Source Edit