Define new symbol to support distros in older Nimble versions.
This commit is contained in:
parent
1c982a7e5f
commit
040189dfca
3 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ srcDir = "src"
|
||||||
|
|
||||||
requires "nim >= 0.13.0", "compiler#head"
|
requires "nim >= 0.13.0", "compiler#head"
|
||||||
|
|
||||||
when defined(nimdistros):
|
when defined(nimbledistros):
|
||||||
import distros
|
import distros
|
||||||
if detectOs(Ubuntu):
|
if detectOs(Ubuntu):
|
||||||
foreignDep "libssl-dev"
|
foreignDep "libssl-dev"
|
||||||
|
|
|
||||||
|
|
@ -590,7 +590,7 @@ As an example, to specify a dependency on openssl you may put this in your
|
||||||
.nimble file:
|
.nimble file:
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
when defined(nimdistros):
|
when defined(nimbledistros):
|
||||||
import distros
|
import distros
|
||||||
if detectOs(Ubuntu):
|
if detectOs(Ubuntu):
|
||||||
foreignDep "libssl-dev"
|
foreignDep "libssl-dev"
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,7 @@ proc execScript(scriptName: string, flags: StringTableRef,
|
||||||
defineSymbol("nimscript")
|
defineSymbol("nimscript")
|
||||||
defineSymbol("nimconfig")
|
defineSymbol("nimconfig")
|
||||||
defineSymbol("nimble")
|
defineSymbol("nimble")
|
||||||
|
defineSymbol("nimbledistros")
|
||||||
registerPass(semPass)
|
registerPass(semPass)
|
||||||
registerPass(evalPass)
|
registerPass(evalPass)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue