cabal-version:       2.2

name:                skete-haskell
version:             0
synopsis:            A distributed, offline capable, local haskell package repository build with skete.
description:
  This package implimentes a git-backed, event-sourced style package repository in the skete framework for Haskell packages.
  It can import packages from and emulate hackage allowing one to work with the full array of published Haskell packages offline.
  Additionally it supports local overalys of packages and local or upstream package sets.
license:             BSD-3-Clause
license-file:        LICENSE
author:              davean
maintainer:          davean@xkcd.com
copyright:           Copyright (C) 2015-2018 davean
category:            System
build-type:          Simple
homepage:            https://oss.xkcd.com/
bug-reports:         https://code.xkrd.net/haskell/skete-haskell/issues

source-repository head
  type: git
  location: https://code.xkrd.net/skete/skete-haskell.git

library
  default-language: Haskell2010
  hs-source-dirs: src
  ghc-options: -O2
  exposed-modules:
      Distribution.Skete.Haskell.Package
  build-depends:
        base ^>= 4.8
      , skete
      , deepseq
      , bytestring
      , filepath
      , wreq
      , Cabal
      , time
      , text
      , mtl
      , tar
      , data-default
      , exceptions
      , containers
      , conduit
      , list-tries
      , monad-log
      , miss
      , delay
      , lens
      , safe
      , case-insensitive
      , atomic-write
      , zlib
      , directory

executable skete-haskell-exe
  main-is: SketeHaskell.hs
  default-language: Haskell2010
  hs-source-dirs: tools
  ghc-options: -O2 -rtsopts -threaded
  other-modules:
        SketeUpdate
      , SketeServer
  build-depends:
        base
      , skete
      , skete-haskell
      , text
      , mtl
      , miss
      , bytestring
      , containers
      , monad-log
      , lens
      , exceptions
      , conduit
      , optparse-applicative
      , optparse-text
      , optparse-helper
      , http-types
      , warp
      , wai
      , wai-extra
      , parsec
      , web-routes
      , web-routes-wai
      , zlib
      , data-default-class
      , deepseq
      , filepath
      , tar
      , servant
      , servant-server