summaryrefslogtreecommitdiff
path: root/dht-client.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-11-29 16:56:13 -0500
committerjoe <joe@jerkface.net>2017-11-29 16:56:13 -0500
commitc604eeb6046c27fefc6eefbf389f21c989a55929 (patch)
tree1934f8fb61ba61e86eb64f38171f64d866f50025 /dht-client.cabal
parentb116e11ef79e1b3f290e3c6994bfe52dd9ab27e5 (diff)
Disabled curve 25519 backport for newer cryptonite library.
Diffstat (limited to 'dht-client.cabal')
-rw-r--r--dht-client.cabal39
1 files changed, 24 insertions, 15 deletions
diff --git a/dht-client.cabal b/dht-client.cabal
index 023f837e..b71f75de 100644
--- a/dht-client.cabal
+++ b/dht-client.cabal
@@ -56,13 +56,17 @@ flag xmpp
56 description: Include code for xmpp clients 56 description: Include code for xmpp clients
57 default: True 57 default: True
58 58
59flag cryptonite-backport
60 description: Backport curve 25519 to older cryptonite library.
61 default: False
62
59library 63library
60 default-language: Haskell2010 64 default-language: Haskell2010
61 default-extensions: PatternGuards 65 default-extensions: PatternGuards
62 , OverloadedStrings 66 , OverloadedStrings
63 , RecordWildCards 67 , RecordWildCards
64 , NondecreasingIndentation 68 , NondecreasingIndentation
65 hs-source-dirs: src, cryptonite-backport, ., Presence 69 hs-source-dirs: src, ., Presence
66 exposed-modules: Network.SocketLike 70 exposed-modules: Network.SocketLike
67 Data.Digest.CRC32C 71 Data.Digest.CRC32C
68 Data.Bits.ByteString 72 Data.Bits.ByteString
@@ -152,7 +156,6 @@ library
152 , contravariant 156 , contravariant
153 , xml-types 157 , xml-types
154 158
155 , cryptonite
156 , memory 159 , memory
157 , time 160 , time
158 , random 161 , random
@@ -199,20 +202,8 @@ library
199 202
200 203
201 other-modules: Paths_dht_client 204 other-modules: Paths_dht_client
202 Crypto.Cipher.Salsa
203 Crypto.Cipher.XSalsa
204 Crypto.ECC.Class
205 Crypto.ECC.Simple.Prim
206 Crypto.ECC.Simple.Types
207 Crypto.Error.Types
208 Crypto.Internal.ByteArray
209 Crypto.Internal.Compat
210 Crypto.Internal.DeepSeq
211 Crypto.Internal.Imports
212 Crypto.PubKey.Curve25519
213 205
214 C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c, 206 C-sources: Presence/monitortty.c
215 Presence/monitortty.c
216 207
217 -- if flag(aeson) 208 -- if flag(aeson)
218 build-depends: aeson, aeson-pretty, unordered-containers, vector 209 build-depends: aeson, aeson-pretty, unordered-containers, vector
@@ -231,6 +222,24 @@ library
231 ghc-options: -fwarn-missing-signatures -fdefer-typed-holes 222 ghc-options: -fwarn-missing-signatures -fdefer-typed-holes
232 ghc-prof-options: 223 ghc-prof-options:
233 224
225 if flag(cryptonite-backport)
226 cpp-options: -DCRYPTONITE_BACKPORT
227 hs-source-dirs: cryptonite-backport
228 C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c,
229 other-modules: Crypto.Cipher.Salsa
230 Crypto.Cipher.XSalsa
231 Crypto.ECC.Class
232 Crypto.ECC.Simple.Prim
233 Crypto.ECC.Simple.Types
234 Crypto.Error.Types
235 Crypto.Internal.ByteArray
236 Crypto.Internal.Compat
237 Crypto.Internal.DeepSeq
238 Crypto.Internal.Imports
239 Crypto.PubKey.Curve25519
240 build-depends: cryptonite < 0.22
241 else
242 build-depends: cryptonite >= 0.22
234 243
235executable dht 244executable dht
236 hs-source-dirs: examples 245 hs-source-dirs: examples