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"]
  ["dune" "build" "-p" name "-j" jobs]
  ["dune" "runtest" "-p" name] {with-test}
]

depends: [
  "ocaml"            {>= "4.03.0"}
  "dune"             {>= "1.1"}
  "cohttp-mirage"    {>= "1.0.0"}
  "mirage-flow"      {>= "2.0.0"}
  "mirage-channel"   {>= "4.0.0"}
  "conduit-mirage"
  "conduit-mirage"   {with-test & < "2.2.0"}
  "git-http"         {= version}
  "git"              {= version}
  "alcotest"         {with-test & >= "0.8.1"}
  "mtime"            {with-test & >= "1.0.0"}
  "nocrypto"         {with-test & >= "0.5.4"}
  "tls"              {with-test}
  "io-page"          {with-test & >= "1.6.1"}
  "tcpip"            {with-test & >= "3.3.0" & < "6.0.0"}
  "io-page-unix"     {with-test}
  "mirage-stack" {with-test & >= "2.0.0"}
  "mirage-random-test" {with-test}
  "mirage-clock-unix" {with-test & >= "3.0.0"}
]
url {
  src:
    "https://github.com/mirage/ocaml-git/releases/download/2.1.2/git-2.1.2.tbz"
  checksum: [
    "sha256=b2fc7aae9735526eb11ecf7c2bfc02393327268a4d3327d8be679622a0a6cc7b"
    "sha512=bb3306f2728d3ac4975b4ba347b53aec26a831a96445ed4812685e9991c46ed45393c107f1b4cb42ca77fed1cbb2a06ffb41036fd7284d812270630c3ac3dc6f"
  ]
}
