Define new symbol to support distros in older Nimble versions.

This commit is contained in:
Dominik Picheta 2017-01-03 17:06:18 +00:00
commit 040189dfca
3 changed files with 3 additions and 2 deletions

View file

@ -22,7 +22,7 @@ srcDir = "src"
requires "nim >= 0.13.0", "compiler#head"
when defined(nimdistros):
when defined(nimbledistros):
import distros
if detectOs(Ubuntu):
foreignDep "libssl-dev"

View file

@ -590,7 +590,7 @@ As an example, to specify a dependency on openssl you may put this in your
.nimble file:
```nim
when defined(nimdistros):
when defined(nimbledistros):
import distros
if detectOs(Ubuntu):
foreignDep "libssl-dev"

View file

@ -241,6 +241,7 @@ proc execScript(scriptName: string, flags: StringTableRef,
defineSymbol("nimscript")
defineSymbol("nimconfig")
defineSymbol("nimble")
defineSymbol("nimbledistros")
registerPass(semPass)
registerPass(evalPass)