packages feed

stratum-tool-0.0.4: stratum-tool.cabal

name:          stratum-tool
version:       0.0.4
synopsis:      Client for Stratum protocol
description:   Connects to Electrum server via Stratum protocol and
	       allows querying bitcoin wallet balances and other commands
	       supported by the server. It supports the original JSON format
	       in addition to shell script friendly JSON breadcrumbs format.
category:      Utils
license:       AGPL-3
license-file:  LICENSE
author:        Joel Lehtonen
maintainer:    joel.lehtonen@koodilehto.fi
build-type:    Simple
cabal-version: >= 1.6
source-repository head
  type: git
  location: git://github.com/zouppen/stratum-tool.git

Flag Ssl
  Description: SSL support enabled
  Default:     True

executable stratum-tool
  main-is:        Main.hs
  hs-source-dirs: src
  build-depends:
    aeson >= 0.6,
    async >= 2.0.1.4,
    base >= 4.2.0.2 && < 5,
    bytestring >= 0.9.2.1,
    cmdargs >= 0.9.2,
    containers >= 0.4.2.1,
    curl-aeson >= 0.0.4,
    network >= 2.3,
    stm >= 2.4,
    text >= 0.11,
    time >= 1.4,
    -- This will ensure Builder support in old environments
    bytestring-builder >= 0.10.4.0.1,
    -- Any version of curl will do because curl-aeson will restrict it anyway
    curl,
    -- Any version of these will do because aeson will restrict it anyway
    vector,
    unordered-containers

  if flag(ssl)
    hs-source-dirs: src-ssl
    build-depends: connection >= 0.1.3.1
  else
    hs-source-dirs: src-nossl