diff options
Diffstat (limited to 'dht/dht-client.cabal')
-rw-r--r-- | dht/dht-client.cabal | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/dht/dht-client.cabal b/dht/dht-client.cabal index 0da181df..6a449a6a 100644 --- a/dht/dht-client.cabal +++ b/dht/dht-client.cabal | |||
@@ -27,6 +27,10 @@ description: | |||
27 | extra-source-files: ChangeLog | 27 | extra-source-files: ChangeLog |
28 | cbits/*.h | 28 | cbits/*.h |
29 | 29 | ||
30 | flag avahi | ||
31 | description: Advertise Tox node on avahi. | ||
32 | Disable to avoid an indirect dependency on lens. | ||
33 | default: True | ||
30 | 34 | ||
31 | flag network-uri | 35 | flag network-uri |
32 | description: Use network-uri package. | 36 | description: Use network-uri package. |
@@ -207,7 +211,6 @@ library | |||
207 | , blaze-builder | 211 | , blaze-builder |
208 | , exceptions | 212 | , exceptions |
209 | , hinotify | 213 | , hinotify |
210 | , avahi >= 0.2.0 | ||
211 | , dput-hslogger | 214 | , dput-hslogger |
212 | , word64-map | 215 | , word64-map |
213 | , network-addr | 216 | , network-addr |
@@ -223,6 +226,9 @@ library | |||
223 | if impl(ghc < 8) | 226 | if impl(ghc < 8) |
224 | Build-depends: transformers | 227 | Build-depends: transformers |
225 | 228 | ||
229 | if flag(avahi) | ||
230 | Build-depends: avahi >= 0.2.0 | ||
231 | |||
226 | if flag(no-constraint-extras) | 232 | if flag(no-constraint-extras) |
227 | build-depends: dependent-sum < 0.6 | 233 | build-depends: dependent-sum < 0.6 |
228 | else | 234 | else |
@@ -282,11 +288,14 @@ library | |||
282 | build-depends: cryptonite >= 0.22 | 288 | build-depends: cryptonite >= 0.22 |
283 | 289 | ||
284 | executable avahi | 290 | executable avahi |
285 | hs-source-dirs: examples | 291 | hs-source-dirs: examples |
286 | main-is: avahi.hs | 292 | main-is: avahi.hs |
287 | default-language: Haskell2010 | 293 | if flag(avahi) |
288 | build-depends: base-prelude, dht-client, avahi, network | 294 | default-language: Haskell2010 |
289 | ghc-options: -fobject-code | 295 | build-depends: base-prelude, dht-client, avahi, network |
296 | ghc-options: -fobject-code | ||
297 | else | ||
298 | buildable: False | ||
290 | 299 | ||
291 | executable dht | 300 | executable dht |
292 | hs-source-dirs: examples | 301 | hs-source-dirs: examples |