diff --git a/nimble.nimble b/nimble.nimble index 21473ab..7617ee7 100644 --- a/nimble.nimble +++ b/nimble.nimble @@ -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"