diff options
author | Joey Hess <joey@kitenet.net> | 2013-10-03 12:33:38 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-10-03 12:33:38 -0400 |
commit | 94b766a439a85b5e16318b94d739ef4eaea3153b (patch) | |
tree | e6b4f3f9d6731597776d79e8c157f20dfab44db0 /git-annex.cabal | |
parent | 9a7b0fa5cc16994509cf7482df68a07319dd6937 (diff) |
allow building w/o cryptohash
Mostly for the debian stable autobuilds, which have a too old version
to use the Crypto.Hash module.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r-- | git-annex.cabal | 9 |
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 |