From af7c57b627c6b83e3d342d9e6c4f95b6041612d8 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 1 Nov 2015 09:56:07 +0300 Subject: Initial commit --- zerobin.cabal | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 zerobin.cabal (limited to 'zerobin.cabal') diff --git a/zerobin.cabal b/zerobin.cabal new file mode 100644 index 0000000..e9174b7 --- /dev/null +++ b/zerobin.cabal @@ -0,0 +1,74 @@ +name: zerobin +version: 1.0.0 +synopsis: Post to paste.ec +description: +license: MIT +license-file: LICENSE +author: Igor Pashev +maintainer: Igor Pashev +copyright: 2015, Zalora South East Asia Pte. Ltd +category: Cryptography, Web +build-type: Simple +extra-source-files: README.md +cabal-version: >= 1.20 + +source-repository head + type: git + location: https://github.com/zalora/zerobin.git + +flag nodejs + description: Build a test program for decrypting with Node.js and SJCL. + You need Node.js and SJCL installed (via NPM for example) + default: False + +flag cli + description: Build a command-line utility. You can use it in shell scripts + default: True + +library + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: src + build-depends: + aeson >= 0.10, + base >= 4.7, + base64-bytestring >= 1.0, + bytestring >= 0.10.6.0, + cryptonite >= 0.8, + http-conduit >= 2.1.8, + memory >= 0.10 + exposed-modules: + ZeroBin, + ZeroBin.SJCL, + ZeroBin.Utils + +executable zerobin + default-language: Haskell2010 + ghc-options: -Wall -static + hs-source-dirs: cli + main-is: Main.hs + if flag(cli) + build-depends: + base >= 4.7, + bytestring >= 0.10.6.0, + docopt >= 0.7.0.4, + zerobin, + raw-strings-qq >= 1.0.2 + else + buildable: False + +executable zerobin-nodejs + default-language: Haskell2010 + ghc-options: -Wall + hs-source-dirs: nodejs + main-is: Main.hs + if flag(nodejs) + build-depends: + aeson >= 0.10, + base >= 4.7, + bytestring >= 0.10.6.0, + zerobin, + process >= 1.3.0.0 + else + buildable: False + -- cgit v1.2.3