diff --git a/waku.nimble b/waku.nimble index 85a8eee0a..25eb4bc78 100644 --- a/waku.nimble +++ b/waku.nimble @@ -20,7 +20,7 @@ requires "nim >= 2.2.4", "json_rpc", "libbacktrace", "nimcrypto", - "serialization", + "serialization", #TODO: match vendor "stew", "stint", "metrics", @@ -32,6 +32,7 @@ requires "nim >= 2.2.4", "db_connector", "minilru", "toml_serialization", # Necessary for confutils/toml support + "json_serialization", # TODO: match vendor for Windows uin16 fix "https://github.com/vacp2p/mix#0.1.0" ### Helper functions @@ -227,3 +228,15 @@ task libWakuAndroid, "Build the mobile bindings for Android": let srcDir = "./library" let extraParams = "-d:chronicles_log_level=ERROR" buildMobileAndroid srcDir, extraParams + +import std/[os, strutils] #XXX from os import parentDir, getEnv, dirExists fails +proc getNimbleDir: string = + result = getEnv("NIMBLE_DIR", getEnv("nimbleDir", "")) + if result.len > 0: return + if (let (installDir, ex) = gorgeEx("nimble path procs"); ex == 0): + result = installDir.strip.parentDir.parentDir # Hopefully .ini nimbleDir + +task showPaths, "Show various paths": + echo "Nimble directory: ", getNimbleDir() + echo "Current directory: ", getCurrentDir() +