Build with libcrypto for https support

This commit is contained in:
Emery Hemingway 2020-01-23 15:14:41 +01:00
父節點 a8fea0dc44
當前提交 ec5017a8b8
共有 3 個文件被更改,包括 7 次插入0 次删除

查看文件

@ -10,3 +10,7 @@ bin = @["hqtoxbot"]
# Dependencies
requires "nim >= 1.0.0", "toxcore >= 0.2.0"
import distros
if detectOs(NixOS):
foreignDep "openssl"

查看文件

@ -2,6 +2,8 @@ import toxcore
import std/asyncdispatch, std/base64, std/json, std/httpclient, std/os, std/strutils
{.passL: "-lcrypto".}
const
readmeText = readFile "README.md"
spaceApiUrl = "http://spaceapi.hq.c3d2.de:3000/spaceapi.json"

1
src/nim.cfg Normal file
查看文件

@ -0,0 +1 @@
-d:ssl