Support being built with crypton rather than cryptonite
crypton is a fork of cryptonite, and cryptonite's github repo has been archived. Some deps are already using cryptonite so it's clearly the way forward. Added a build flag without a default, so cabal configure will select on its own which to use. stack files pin to cryptonite for now. Sponsored-by: Nicholas Golder-Manning on Patreon
This commit is contained in:
parent
e03e907705
commit
54da44d42a
7 changed files with 19 additions and 3 deletions
|
@ -165,6 +165,9 @@ Flag TorrentParser
|
|||
Flag MagicMime
|
||||
Description: Use libmagic to determine file MIME types
|
||||
|
||||
Flag Crypton
|
||||
Description: Use the crypton library rather than the no longer maintained cryptonite
|
||||
|
||||
Flag Benchmark
|
||||
Description: Enable benchmarking
|
||||
Default: True
|
||||
|
@ -254,7 +257,6 @@ Executable git-annex
|
|||
stm-chans,
|
||||
securemem,
|
||||
crypto-api,
|
||||
cryptonite (>= 0.23),
|
||||
memory,
|
||||
deepseq,
|
||||
split,
|
||||
|
@ -294,6 +296,12 @@ Executable git-annex
|
|||
if os(linux) || os(freebsd)
|
||||
GHC-Options: -optl-Wl,--as-needed
|
||||
|
||||
if flag(Crypton)
|
||||
Build-Depends: crypton
|
||||
CPP-Options: -DWITH_CRYPTON
|
||||
else
|
||||
Build-Depends: cryptonite (>= 0.23)
|
||||
|
||||
if (os(windows))
|
||||
Build-Depends:
|
||||
Win32 ((>= 2.6.1.0 && < 2.12.0.0) || >= 2.13.4.0),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue