From 8120ac02c803b3a4b9bdcda7b6939c9145226cb5 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Tue, 3 Jan 2017 14:41:08 +0000 Subject: [PATCH] Add foreign deps to nimble.nimble. --- nimble.nimble | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"