name:                passman-cli
version:             0.2.0.0
synopsis:            Deterministic password generator command line interface
description:
    Generates unique passwords deterministically from a single master password.
    A hash of the master password is stored on disk to prevent accidentally
    generating a password from a mistyped master password.
    .
    This is the command line interface to passman.
homepage:            https://github.com/PasswordManager/passman-cli#readme
bug-reports:         https://github.com/PasswordManager/passman-cli/issues
license:             GPL-3
license-file:        LICENSE
author:              Matthew Harm Bekkema
maintainer:          mbekkema97@gmail.com
copyright:           2017 Matthew Harm Bekkema
category:            Password
build-type:          Simple
extra-source-files:  README.md
                   , ChangeLog.md
cabal-version:       >= 2.0
tested-with:         GHC >= 8.0.1 && <= 8.2.2

flag dummyClipboard
  description:         Use the dummy clipboard
  default:             False
  manual:              True

executable passman-cli
  hs-source-dirs:      src
  main-is:             Passman/CLI.hs
  other-modules:       Passman.CLI.Interaction
                       Passman.CLI.Table
                       Passman.CLI.MasterPassword
                       Passman.CLI.Config
                       Passman.CLI.Entry
                       Passman.CLI.Clipboard
                       Paths_passman_cli
  autogen-modules:     Paths_passman_cli
  ghc-options:         -Wall -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base                  >= 4.9 && < 4.11
                     , conduit              ^>= 1.2.11
                     , contravariant        ^>= 1.4
                     , haskeline            ^>= 0.7.2.3
                     , optparse-applicative ^>= 0.14.0.0
                     , passman-core         ^>= 0.2.0.0
                     , resourcet            ^>= 1.1.10
                     , text                 ^>= 1.2.2.2
                     , yaml                 ^>= 0.8.23.3
  default-language:    Haskell2010
  other-extensions:    CPP
                       GeneralizedNewtypeDeriving
                       OverloadedStrings
                       RecordWildCards

  if flag(dummyClipboard)
    cpp-options:       -DDUMMYCLIPBOARD
    other-modules:     Passman.CLI.Clipboard.Dummy
  else
    build-depends:     X11 >= 1.8 && < 1.9
    other-modules:     Passman.CLI.Clipboard.X11

source-repository head
  type:     git
  location: https://github.com/PasswordManager/passman-cli