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:
Joey Hess 2023-09-21 12:43:42 -04:00
parent e03e907705
commit 54da44d42a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
7 changed files with 19 additions and 3 deletions

View file

@ -75,7 +75,11 @@ dependencyVersions = map fmt $ sortBy (comparing (CI.mk . fst))
, ("bloomfilter", VERSION_bloomfilter)
, ("http-client", VERSION_http_client)
, ("persistent-sqlite", VERSION_persistent_sqlite)
#ifdef WITH_CRYPTON
, ("crypton", VERSION_crypton)
#else
, ("cryptonite", VERSION_cryptonite)
#endif
, ("aws", VERSION_aws)
, ("DAV", VERSION_DAV)
#ifdef WITH_TORRENTPARSER