diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-08-06 15:02:25 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-08-06 15:02:25 -0400 |
commit | 7310bf39e0b6729bafc138631304b8e1edde839f (patch) | |
tree | 89027a1af6abaf330996c142a96bbe8df0ced3ee /git-annex.cabal | |
parent | 9cd989ff0da857fad0d04f2961a0e1baa62d26b0 (diff) |
Added support for SHA3 hashed keys (in 8 varieties), when git-annex is built using the cryptonite library.
While cryptohash has SHA3 support, it has not been updated for the final
version of the spec. Note that cryptonite has not been ported to all arches
that cryptohash builds on yet.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r-- | git-annex.cabal | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/git-annex.cabal b/git-annex.cabal index 22876e0cc..13b22c338 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -109,12 +109,14 @@ Flag Database Description: Enable building with persistent for database use (disable to build on platforms not supporting TH) Default: True +Flag Cryptonite + Description: Use the cryptonite library, instead of the older cryptohash + Executable git-annex Main-Is: git-annex.hs Build-Depends: base (>= 4.5 && < 4.9), optparse-applicative (>= 0.11.0), - cryptohash (>= 0.11.0), containers (>= 0.5.0.0), exceptions (>= 0.6), QuickCheck (>= 2.1), @@ -144,6 +146,12 @@ Executable git-annex else Build-Depends: network (< 2.6), network (>= 2.0) + if flag(Cryptonite) + Build-Depends: cryptonite + CPP-Options: -DWITH_CRYPTONITE + else + Build-Depends: cryptohash (>= 0.11.0) + if flag(Production) GHC-Options: -O2 |