Implements some helper procs for Nimble (Nim's package manager) support.
Procs
proc `<`(ver: Version; ver2: Version): bool {....raises: [ValueError], tags: [].}
- This is synced from Nimble's version module. Source Edit
proc addPackage(conf: ConfigRef; packages: var PackageInfo; p: string; info: TLineInfo) {....raises: [ValueError, Exception, KeyError, OSError, IOError, ERecoverableError], tags: [RootEffect, ReadDirEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
- Source Edit
proc addPath(conf: ConfigRef; path: AbsoluteDir; info: TLineInfo) {....raises: [], tags: [].}
- Source Edit
proc getPathVersionChecksum(p: string): tuple[name, version, checksum: string] {. ...raises: [], tags: [].}
- 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: [].}
- Source Edit
proc nimblePath(conf: ConfigRef; path: AbsoluteDir; info: TLineInfo) {....raises: [ OSError, ValueError, Exception, KeyError, IOError, ERecoverableError], tags: [ ReadDirEffect, RootEffect, WriteIOEffect, ReadIOEffect, ReadEnvEffect].}
- Source Edit