summaryrefslogtreecommitdiff
path: root/git-repair.cabal
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2014-10-27 11:06:35 -0400
committerJoey Hess <joey@kitenet.net>2014-10-27 11:06:35 -0400
commita75b13f2565e7908eb3e86477c447ce7ca575820 (patch)
tree1af8258f3e5473b3552d161d78ec5a7d59175a7d /git-repair.cabal
parent10fa4567bd1761a1e26b841128aff9781e7e0df3 (diff)
downloadgit-repair-a75b13f2565e7908eb3e86477c447ce7ca575820.tar.gz
Adjust cabal file to support network-uri split.
Diffstat (limited to 'git-repair.cabal')
-rw-r--r--git-repair.cabal11
1 files changed, 10 insertions, 1 deletions
diff --git a/git-repair.cabal b/git-repair.cabal
index 67573f4..0696576 100644
--- a/git-repair.cabal
+++ b/git-repair.cabal
@@ -22,14 +22,23 @@ Description:
using git-repair can help rescue commits you've made to the damaged
repository and not yet pushed out.
+Flag network-uri
+ Description: Get Network.URI from the network-uri package
+ Default: True
+
Executable git-repair
Main-Is: git-repair.hs
GHC-Options: -Wall -threaded
Build-Depends: MissingH, hslogger, directory, filepath, containers, mtl,
- network, unix-compat, bytestring, exceptions (>= 0.6), transformers,
+ unix-compat, bytestring, exceptions (>= 0.6), transformers,
base >= 4.5, base < 5, IfElse, text, process, time, QuickCheck,
utf8-string, async, optparse-applicative (>= 0.10.0)
+ if flag(network-uri)
+ Build-Depends: network-uri (>= 2.6), network (>= 2.6)
+ else
+ Build-Depends: network (< 2.6), network (>= 2.0)
+
if (os(windows))
Build-Depends: setenv
else