Browse Source

Build with libcrypto for https support

master
Emery Hemingway 10 months ago
parent
commit
ec5017a8b8
3 changed files with 7 additions and 0 deletions
  1. 4
    0
      hqtoxbot.nimble
  2. 2
    0
      src/hqtoxbot.nim
  3. 1
    0
      src/nim.cfg

+ 4
- 0
hqtoxbot.nimble View File

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

+ 2
- 0
src/hqtoxbot.nim View File

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

+ 1
- 0
src/nim.cfg View File

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

Loading…
Cancel
Save