summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal9
1 files changed, 8 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index fe7723d89..c501b29be 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -71,12 +71,15 @@ Flag Feed
Flag Quvi
Description: Enable use of quvi to download videos
+Flag CryptoHash
+ Description: Enable use of cryptohash for checksumming
+
Executable git-annex
Main-Is: git-annex.hs
Build-Depends: MissingH, hslogger, directory, filepath,
containers, utf8-string, network (>= 2.0), mtl (>= 2),
bytestring, old-locale, time, HTTP,
- extensible-exceptions, dataenc, SHA, cryptohash, process, json,
+ extensible-exceptions, dataenc, SHA, process, json,
base (>= 4.5 && < 4.8), monad-control, MonadCatchIO-transformers,
IfElse, text, QuickCheck >= 2.1, bloomfilter, edit-distance, process,
SafeSemaphore, uuid, random, dlist, unix-compat
@@ -106,6 +109,10 @@ Executable git-annex
if flag(TDFA)
Build-Depends: regex-tdfa
CPP-Options: -DWITH_TDFA
+
+ if flag(CryptoHash)
+ Build-Depends: cryptohash (>= 0.10.0)
+ CPP-Options: -DWITH_CRYPTOHASH
if flag(S3)
Build-Depends: hS3