Add foreign deps to nimble.nimble.

This commit is contained in:
Dominik Picheta 2017-01-03 14:41:08 +00:00
commit 8120ac02c8

View file

@ -1,4 +1,4 @@
import ospaths
import ospaths, distros
template thisModuleFile: string = instantiationInfo(fullPaths = true).filename
when fileExists(thisModuleFile.parentDir / "src/nimblepkg/common.nim"):
@ -22,6 +22,11 @@ srcDir = "src"
requires "nim >= 0.13.0", "compiler#head"
if detectOs(Ubuntu):
foreignDep "libssl-dev"
elif detectOs(MacOSX):
foreignDep "openssl"
task test, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"