summaryrefslogtreecommitdiff
path: root/kiki.cabal
blob: 9e9e3146a7e8bcafefd9f5cdfd2c6901233239ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

Name:                kiki
Version:             0.0.3
cabal-version:       >= 1.6
Synopsis:            Samizdat gpg tool
Description:         gpg operations... TODO
License:             Undecided
-- License-file:        LICENSE TODO
Author:              Joseph Crayne
Maintainer:          Joseph Crayne <oh.hello.joe@gmail.com>
--Homepage:          TODO
build-type:          Simple

Flag cryptonite
  Description: Use newer cryptonite-based x509 version 1.6 and higher
  Default: True

Flag hourglass
  Description: Use newer hourglass-based x509 version 1.5 and higher
  Default: True

Executable kiki
    Main-is: kiki.hs
    -- base >=4.6 due to use of readEither in KikiD.Message
    Build-Depends:   base >=4.6.0.0,
                     directory -any,
                     openpgp-util -any,
                     asn1-types -any, asn1-encoding -any,
                     dataenc -any, text -any, pretty -any, pretty-show -any,
                     bytestring -any, binary -any,
                     unix, time,
                     containers -any, process -any, filepath -any,
                     network -any, old-locale -any, zlib -any
    if !flag(cryptonite)
      Build-Depends:   crypto-pubkey >=0.2.3, cryptohash -any,
                       crypto-pubkey-types -any
      if flag(hourglass)
        Build-Depends:   hourglass -any, x509 >=1.5 && <1.6
      else
        Build-Depends:   x509 <1.6
    else
      Build-Depends:   cryptonite, x509 >=1.6, memory, hourglass
    ghc-options:     -O2 -fwarn-unused-binds -fwarn-unused-imports
    c-sources: dotlock.c

Executable hosts
    Main-is: hosts.hs
    c-sources: dotlock.c

library
    exposed-modules: KeyRing