From 20babd097f4d5726e6020c4e021d3592faf2f8db Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 25 Apr 2016 16:01:16 -0400 Subject: add need-local flag to cabal file --- kiki.cabal | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'kiki.cabal') diff --git a/kiki.cabal b/kiki.cabal index a96eee9..3a66588 100644 --- a/kiki.cabal +++ b/kiki.cabal @@ -19,6 +19,10 @@ Flag hourglass Description: Use newer hourglass-based x509 version 1.5 and higher Default: True +Flag needlocale + Description: Link against old-locale package for older versions of the time package. + Default: False + Executable kiki Main-is: kiki.hs -- base >=4.6 due to use of readEither in KikiD.Message @@ -93,10 +97,15 @@ library pretty-show, process, text, - time, unix, zlib, openpgp-util + -- todo: remove this dependency when flag(hourglass) + if flag(needlocale) + build-depends: time < 1.5, old-locale + else + build-depends: time >= 1.5 + if !flag(cryptonite) Build-Depends: crypto-pubkey >=0.2.3, cryptohash -any, crypto-pubkey-types -any -- cgit v1.2.3