diff options
Diffstat (limited to 'erebos.cabal')
| -rw-r--r-- | erebos.cabal | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/erebos.cabal b/erebos.cabal index b4b7f75..7e9c759 100644 --- a/erebos.cabal +++ b/erebos.cabal @@ -31,6 +31,7 @@ Extra-Source-Files: src/Erebos/ICE/pjproject.h src/Erebos/Network/ifaddrs.h + flag ice Description: Enable peer discovery with ICE support using pjproject @@ -46,6 +47,15 @@ flag crypto-reflibs description: Use various (reference) libraries as crypto backed default: False +flag bytearray-ram + description: Use 'ram' package to provide the ByteArray module + default: True + +flag bytearray-memory + description: Use 'memory' package to provide the ByteArray module + default: False + + source-repository head type: git location: https://code.erebosprotocol.net/erebos @@ -178,7 +188,6 @@ library hashable ^>= { 1.3, 1.4, 1.5 }, hashtables ^>= { 1.2, 1.3, 1.4 }, iproute >=1.7.12 && <1.8, - memory >=0.14 && <0.19, mtl ^>= { 2.2.2, 2.3 }, network ^>= { 3.1, 3.2 }, stm >=2.5 && <2.6, @@ -188,14 +197,25 @@ library zlib >=0.6 && <0.8 if flag(crypton) - build-depends: - crypton ^>= { 0.34, 1.0 }, + if flag(bytearray-ram) + build-depends: + crypton ^>= { 1.1, 2.0 }, + elif flag(bytearray-memory) + build-depends: + crypton ^>= { 0.34, 1.0 }, + else + build-depends: + crypton < 0 hs-source-dirs: src/crypto/crypton elif flag(cryptonite) - build-depends: - cryptonite >=0.25 && <0.31, + if flag(bytearray-memory) + build-depends: + cryptonite >=0.25 && <0.31, + else + build-depends: + cryptonite < 0 hs-source-dirs: src/crypto/crypton @@ -221,6 +241,19 @@ library else build-depends: base < 0 + if flag(bytearray-ram) + if flag(bytearray-memory) + build-depends: + base < 0 + build-depends: + ram ^>= { 0.21, 0.22 } + elif flag(bytearray-memory) + build-depends: + memory ^>= { 0.14, 0.15, 0.16, 0.17, 0.18 }, + else + build-depends: + base < 0 + if os(windows) hs-source-dirs: src/windows build-depends: |