diff options
-rw-r--r-- | erebos.cabal | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/erebos.cabal b/erebos.cabal index ebe6a63..a0a0d4b 100644 --- a/erebos.cabal +++ b/erebos.cabal @@ -39,6 +39,10 @@ Flag ci default: False manual: True +Flag cryptonite + description: Use deprecated 'cryptonite' package + default: False + source-repository head type: git location: https://code.erebosprotocol.net/erebos @@ -155,7 +159,6 @@ library bytestring >=0.10 && <0.13, clock >=0.8 && < 0.9, containers ^>= { 0.6, 0.7, 0.8 }, - crypton ^>= { 0.34, 1.0 }, deepseq >= 1.4 && <1.6, directory >= 1.3 && <1.4, filepath >=1.4 && <1.6, @@ -172,6 +175,13 @@ library uuid-types ^>= { 1.0.4 }, zlib >=0.6 && <0.8 + if !flag(cryptonite) + build-depends: + crypton ^>= { 0.34, 1.0 }, + else + build-depends: + cryptonite >=0.25 && <0.31, + if os(windows) hs-source-dirs: src/windows build-depends: @@ -202,7 +212,6 @@ executable erebos build-depends: ansi-terminal ^>= { 0.11, 1.0, 1.1 }, bytestring, - crypton, directory, erebos, mtl, @@ -214,3 +223,10 @@ executable erebos time, transformers >= 0.5 && <0.7, uuid-types, + + if !flag(cryptonite) + build-depends: + crypton, + else + build-depends: + cryptonite, |