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.07.0"}
  "dune"
  "cohttp-mirage"     {>= "1.0.0"}
  "mirage-flow"       {>= "2.0.0"}
  "mirage-channel"    {>= "4.0.0"}
  "conduit"           {< "2.3.0"}
  "conduit-mirage"    {>= "2.2.0" & < "2.3.0"}
  "git-http"          {= version}
  "git"               {= version}
  "alcotest"          {with-test & >= "0.8.1"}
  "mtime"             {with-test & >= "1.0.0"}
  "mirage-crypto-rng" {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-clock-unix" {with-test & >= "3.0.0"}
  "mirage-time-unix"  {with-test & >= "2.0.1"}
]
url {
  src:
    "https://github.com/mirage/ocaml-git/releases/download/2.1.3/git-2.1.3.tbz"
  checksum: [
    "sha256=5d614ae0404a2438c5cee98bf4aa64cee9980e2a382a437acd6ee65dcca6f4de"
    "sha512=9a863552ad7fddfa37d92738dd1c793e888a3c544f97a7634aa9ed5cef1ca22db4e6bfa1908c58986af0bf1dcd665ba63308c1656e68397b7a87f1a09e94fe97"
  ]
}
