summaryrefslogtreecommitdiff
path: root/dht-client.cabal
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2017-09-15 06:42:27 -0400
committerjoe <joe@jerkface.net>2017-09-15 06:42:27 -0400
commit2f937504c7ce372e801e8828746c775b662f1118 (patch)
treefa1212039c5f937a156bbdde5f9dfa9d04b301fc /dht-client.cabal
parent12cbb3af2413dc28838ed271351dda16df8f7bdb (diff)
Renamed package to dht-client.
Diffstat (limited to 'dht-client.cabal')
-rw-r--r--dht-client.cabal196
1 files changed, 196 insertions, 0 deletions
diff --git a/dht-client.cabal b/dht-client.cabal
new file mode 100644
index 00000000..92b57160
--- /dev/null
+++ b/dht-client.cabal
@@ -0,0 +1,196 @@
1name: dht-client
2version: 0.0.0.4
3license: BSD3
4license-file: LICENSE
5author: Joe Crayne
6maintainer: Joe Crayne
7copyright: (c) 2017 Joe Crayne, (c) 2013, Sam Truzjan
8category: Network
9build-type: Simple
10cabal-version: >= 1.10
11tested-with: GHC == 8.0.2
12homepage: https://github.com/cobit/bittorrent
13bug-reports: https://github.com/cobit/bittorrent/issues
14synopsis: BitTorrent DHT protocol implementation.
15description:
16
17 A library for making Haskell bittorrent applications easy.
18 .
19 For more information see:
20 <https://github.com/cobit/bittorrent/blob/master/README.md>
21
22extra-source-files: res/dapper-dvd-amd64.iso.torrent
23 res/pkg.torrent
24 README.md
25 ChangeLog
26 cbits/*.h
27
28
29source-repository head
30 type: git
31 location: git://github.com/cobit/bittorrent.git
32
33source-repository this
34 type: git
35 location: git://github.com/cobit/bittorrent.git
36 branch: master
37 tag: v0.0.0.4
38
39flag network-uri
40 description: Use network-uri package.
41 default: True
42
43flag builder
44 description: Use older bytestring package and bytestring-builder.
45 default: False
46
47flag aeson
48 description: Use aeson for pretty-printing bencoded data.
49 default: True
50
51flag thread-debug
52 description: Add instrumentation to threads.
53 default: True
54
55library
56 default-language: Haskell2010
57 default-extensions: PatternGuards
58 , OverloadedStrings
59 , RecordWildCards
60 hs-source-dirs: src, cryptonite-backport, .
61 exposed-modules: Network.SocketLike
62 Data.Digest.CRC32C
63 Data.Bits.ByteString
64 Data.Wrapper.PSQ
65 Data.Wrapper.PSQInt
66 Data.MinMaxPSQ
67 Network.Address
68 Network.DHT.Routing
69 Data.Torrent
70 Network.BitTorrent.DHT.ContactInfo
71 Network.BitTorrent.DHT.Token
72 Network.BitTorrent.DHT.Search
73 Network.QueryResponse
74 Network.StreamServer
75 Data.BEncode.Pretty
76 Control.Concurrent.Tasks
77 Network.Kademlia
78 Network.BitTorrent.MainlineDHT
79 System.Global6
80 Network.Tox
81 Network.Tox.Transport
82 Network.Tox.Crypto.Transport
83 Network.Tox.Onion.Handlers
84 Network.Tox.Onion.Transport
85 Network.Tox.DHT.Handlers
86 Network.Tox.DHT.Transport
87 Network.Tox.Address
88 Control.TriadCommittee
89 Crypto.Tox
90 Text.XXD
91
92 build-depends: base
93 , containers
94 , array
95 , hashable
96 , iproute
97 , stm
98 , base16-bytestring
99 , base32-bytestring
100 , base64-bytestring
101 , psqueues
102 , reflection
103 , deepseq
104 , text
105 , filepath
106 , directory
107 , bencoding
108 , contravariant
109
110 , cryptonite
111 , memory
112 , time
113 , random
114 , entropy
115 , cpu
116
117 , cereal
118 , http-types
119
120 , process
121 , split
122 , pretty
123 , convertible
124 , data-default
125
126 , bifunctors
127 , lens
128 , lifted-async
129 , lifted-base
130 , monad-control
131 , transformers-base
132 , mtl
133
134 if flag(network-uri)
135 Build-depends: network >= 2.6
136 , network-uri >= 2.6
137 else
138 Build-depends: network >= 2.4 && < 2.6
139
140
141 other-modules: Paths_bittorrent
142 Crypto.Cipher.Salsa
143 Crypto.Cipher.XSalsa
144 Crypto.ECC.Class
145 Crypto.ECC.Simple.Prim
146 Crypto.ECC.Simple.Types
147 Crypto.Error.Types
148 Crypto.Internal.ByteArray
149 Crypto.Internal.Compat
150 Crypto.Internal.DeepSeq
151 Crypto.Internal.Imports
152 Crypto.PubKey.Curve25519
153
154 C-sources: cbits/cryptonite_xsalsa.c, cbits/cryptonite_salsa.c
155
156 if flag(aeson)
157 build-depends: aeson, aeson-pretty, unordered-containers, vector
158 cpp-options: -DBENCODE_AESON
159 if flag(thread-debug)
160 exposed-modules: Control.Concurrent.Lifted.Instrument
161 Control.Concurrent.Async.Lifted.Instrument
162 cpp-options: -DTHREAD_DEBUG
163
164 if flag(builder)
165 build-depends: bytestring >= 0.9, bytestring-builder
166 else
167 build-depends: bytestring >= 0.10
168 if impl(ghc < 7.6)
169 build-depends: ghc-prim
170 ghc-options: -Wall -fdefer-typed-holes
171 ghc-prof-options:
172
173
174executable dht
175 hs-source-dirs: examples
176 main-is: dht.hs
177 default-language: Haskell2010
178 build-depends: base, haskeline, network, bytestring, transformers
179
180executable dhtd
181 hs-source-dirs: examples
182 main-is: dhtd.hs
183 default-language: Haskell2010
184 build-depends: base, network, bytestring, hashable, deepseq
185 , aeson
186 , pretty
187 , dht-client
188 , unix
189 , containers
190 , stm
191 , cereal
192 , bencoding
193 if flag(thread-debug)
194 build-depends: time
195 cpp-options: -DTHREAD_DEBUG
196