Build with libcrypto for https support

This commit is contained in:
Emery Hemingway 2020-01-23 15:14:41 +01:00
vecāks a8fea0dc44
revīzija ec5017a8b8
3 mainīti faili ar 7 papildinājumiem un 0 dzēšanām

Parādīt failu

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

Parādīt failu

@ -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
Parādīt failu

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