Implements NimblePkgVersion define. Fixes #625.

This commit is contained in:
Dominik Picheta 2019-09-22 00:53:52 +01:00
commit 4a2aaa07dc
5 changed files with 33 additions and 4 deletions

View file

@ -0,0 +1,14 @@
# Package
version = "0.1.0"
author = "Dominik Picheta"
description = "A new awesome nimble package"
license = "MIT"
srcDir = "src"
bin = @["nimbleVersionDefine"]
# Dependencies
requires "nim >= 0.16.0"

Binary file not shown.

View file

@ -0,0 +1,3 @@
when isMainModule:
const NimblePkgVersion {.strdefine.} = "Unknown"
echo(NimblePkgVersion)