diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-04-26 10:31:57 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-04-26 10:31:57 +0200 |
commit | 31436dbed550c76f2165f29f48e255f19cc3561a (patch) | |
tree | 9722d8828999e10c722ffaacbda29b343372fcea | |
parent | fe09107946202ad0216d518c95dcff6d159d76b0 (diff) | |
parent | f8f8ebd1371bb10c604a83ac842e235085e3a5e1 (diff) |
Merge branch 'release-0.1'
-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, |