opam-version: "2.0"
maintainer:   "thomas@gazagnaire.org"
authors:      ["Thomas Gazagnaire" "Thomas Leonard"]
license:      "ISC"
homepage:     "https://github.com/mirage/irmin"
bug-reports:  "https://github.com/mirage/irmin/issues"
dev-repo: "git+https://github.com/mirage/irmin.git"
doc:          "https://mirage.github.io/irmin/"

build: [
  [
    "ocaml"
    "pkg/pkg.ml"
    "build"
    "--pinned"
    "%{pinned}%"
    "-n"
    name
    "--tests"
    "false"
  ]
  [
    "ocaml"
    "pkg/pkg.ml"
    "build"
    "--pinned"
    "%{pinned}%"
    "-n"
    name
    "--tests"
    "true"
  ] {with-test}
  ["ocaml" "pkg/pkg.ml" "test" "-n" name] {with-test}
]
depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlbuild" {build}
  "ocamlfind" {build}
  "topkg" {build & >= "0.9.0"}
  "irmin" {>= "1.0.0" & < "1.1.0"}
  "irmin-git" {>= "1.0.0" & < "2.0.0"}
  "irmin-http" {>= "1.0.0" & < "2.0.0"}
  "git-unix" {>= "1.10.0"}
  "cmdliner" {>= "1.0.0"}
  "irmin-watcher" {>= "0.2.0"}
  "irmin-mirage" {with-test & >= "1.0.0" & < "2.0.0"}
  "alcotest" {with-test}
]
synopsis: "Unix backends for Irmin"
description: """
`Irmin_unix` defines Unix backends (including Git and HTTP) for Irmin, as well
as a very simple CLI tool (called `irmin`) to manipulate and inspect Irmin
stores."""
url {
  src:
    "https://github.com/mirage/irmin/releases/download/1.0.2/irmin-1.0.2.tbz"
  checksum: "md5=fb8a6dab7c4dcbfadd8530c6351a7add"
}
