mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-24 15:53:10 +00:00
fix dependency issue
This commit is contained in:
parent
47f7fca195
commit
0c8e8d97c6
15
waku.nimble
15
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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user