opam-version: "2.0"
maintainer:   [ "thomas@gazagnaire.org"
                "romain.calascibetta@gmail.com" ]
authors:      "Thomas Gazagnaire"
license:      "ISC"
homepage:     "https://github.com/mirage/ocaml-git"
bug-reports:  "https://github.com/mirage/ocaml-git/issues"
dev-repo:     "git+https://github.com/mirage/ocaml-git.git"
doc:          "https://mirage.github.io/ocaml-git/"
synopsis:     "MirageOS backend for the Git protocol(s)"

build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name] {with-test}
]

depends: [
  "ocaml"            {>= "4.03.0"}
  "dune"
  "cohttp-mirage"    {>= "1.0.0"}
  "mirage-flow-lwt"
  "mirage-channel-lwt"
  "conduit"          {< "2.3.0"}
  "mirage-conduit"   {>= "3.0.0"}
  "git-http"         {>= "2.0.0"}
  "git"              {>= "2.0.0" & < "2.1.1"}
  "alcotest"         {with-test & >= "0.8.1"}
  "mtime"            {with-test & >= "1.0.0"}
  "mirage-fs-unix"   {with-test & >= "1.3.0"}
  "nocrypto"         {with-test & >= "0.5.4"}
  "tls"              {with-test}
  "io-page"          {with-test & >= "1.6.1" & <  "2.0.0"}
  "tcpip"            {with-test & >= "3.3.0" & < "6.0.0"}
  "mirage-stack-lwt" {with-test & >= "1.3.0"}
  "mirage-time-unix"
]
url {
  src:
    "https://github.com/mirage/ocaml-git/releases/download/2.0.0/git-2.0.0.tbz"
  checksum: "md5=9d7200e8eb15325e3bf37199f6255826"
}
