Just check for nimdistros instead of adding an additional define.
This commit is contained in:
parent
fcbb3de783
commit
b629048249
4 changed files with 2 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ srcDir = "src"
|
||||||
|
|
||||||
requires "nim >= 0.13.0", "compiler#head"
|
requires "nim >= 0.13.0", "compiler#head"
|
||||||
|
|
||||||
when defined(nimbledistros):
|
when defined(nimdistros):
|
||||||
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(nimbledistros):
|
when defined(nimdistros):
|
||||||
import distros
|
import distros
|
||||||
if detectOs(Ubuntu):
|
if detectOs(Ubuntu):
|
||||||
foreignDep "libssl-dev"
|
foreignDep "libssl-dev"
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ var
|
||||||
foreignDeps*: seq[string] = @[] ## The foreign dependencies. Only
|
foreignDeps*: seq[string] = @[] ## The foreign dependencies. Only
|
||||||
## exported for 'distros.nim'.
|
## exported for 'distros.nim'.
|
||||||
|
|
||||||
when defined(nimdistros) and defined(nimblesupportsdistros):
|
|
||||||
const nimbledistros = true
|
|
||||||
|
|
||||||
proc requires*(deps: varargs[string]) =
|
proc requires*(deps: varargs[string]) =
|
||||||
## Call this to set the list of requirements of your Nimble
|
## Call this to set the list of requirements of your Nimble
|
||||||
## package.
|
## package.
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,6 @@ proc execScript(scriptName: string, flags: StringTableRef,
|
||||||
defineSymbol("nimscript")
|
defineSymbol("nimscript")
|
||||||
defineSymbol("nimconfig")
|
defineSymbol("nimconfig")
|
||||||
defineSymbol("nimble")
|
defineSymbol("nimble")
|
||||||
defineSymbol("nimblesupportsdistros")
|
|
||||||
registerPass(semPass)
|
registerPass(semPass)
|
||||||
registerPass(evalPass)
|
registerPass(evalPass)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue