opam-version: "2.0"
maintainer:   "thomas@gazagnaire.org"
authors:      ["Thomas Leonard" "Magnus Skjegstad"
               "David Scott" "Thomas Gazagnaire"]
license:      "Apache-1.0+"
homepage:     "https://github.com/moby/datakit"
bug-reports:  "https://github.com/moby/datakit/issues"
dev-repo: "git+https://github.com/moby/datakit.git"
doc:          "https://docker.github.io/datakit/"

build: [
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "runtest" "tests/%{name}%"] {with-test}
]
depends: [
  "ocaml"
  "jbuilder" {>= "1.0+beta10"}
  "cmdliner"
  "lwt" {>= "3.0.0"}
  "datakit-github" {>= "0.12.0"}
  "datakit-client-9p" {>= "0.12.0"}
  "datakit-client-git"
  "logs"
  "fmt"
  "mtime" {>= "1.0.0"}
  "asl"
  "win-eventlog"
  "uri" {>= "1.8.0"}
  "hvsock" {>= "0.8.1"}
  "hex"
  "nocrypto"
  "prometheus-app"
  "protocol-9p-unix" {>= "0.11.0"}
  "datakit-client" {>= "0.12.0"}
  "github-hooks-unix" {>= "0.2.0"}
  "github" {>= "2.1.0" & < "4.0.0"}
  "alcotest" {with-test}
  "datakit" {with-test & = "0.12.0"}
]
patches: [
  "fmt.tty-is-used-by-datakit-log.patch"
]
conflicts: [ "irmin" {<"1.4.0"} ]
synopsis: "A bi-directional bridge between the GitHub API and Datakit"
description: """
The package provides a bi-directional bridge between the GitHub API
and Datakit, so you can talk to the GitHub API using filesystem and
Git-like commands only. The `datakit-github` programs can start a
webhook server to listen for GitHub events in real time, and project
it into a Git repository. It also monitors that Git repository for
user-provided changes, and translate them into GitHub API calls."""
extra-files: [
  "fmt.tty-is-used-by-datakit-log.patch"
  "md5=6e971bc4c46c6a3aa67b08a96c0bb09f"
]
url {
  src:
    "https://github.com/moby/datakit/releases/download/0.12.0/datakit-0.12.0.tbz"
  checksum: "md5=3ac6e63eda6034507537c6439f0f8963"
}
