opam-version: "2.0"
maintainer: "rudi.grinberg@gmail.com"
authors: ["Rudi Grinberg"]
license: "MIT"

homepage: "https://github.com/rgrinberg/opium"
bug-reports: "https://github.com/rgrinberg/opium/issues"
dev-repo: "git+https://github.com/rgrinberg/opium.git"
synopsis: "Sinatra like web toolkit based on Lwt + Cohttp"
description: """
Opium_kernel is the Unix indpendent core of Opium. Useful for extremely portable environments such as mirage.
"""

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

depends: [
  "ocaml" {>= "4.04.1"}
  "dune"
  "hmap"
  "cohttp" {>= "0.99.0"}
  "cohttp-lwt" {>= "0.99.0"}
  "ezjsonm" {>= "0.4.0" & < "1.2.0"}
  "base64" {>= "2.0.0"}
  "lwt"
  "fieldslib" {>= "v0.9.0" & < "v0.15"}
  "sexplib" {>= "v0.9.0" & < "v0.15"}
  "ppx_fields_conv" {>= "v0.9.0" & < "v0.15"}
  "ppx_sexp_conv" {>= "v0.9.0" & < "v0.15"}
  "re" {>= "1.3.0"}
  "alcotest" {with-test}
]
url {
  src:
    "https://github.com/rgrinberg/opium/releases/download/v0.17.1/opium-v0.17.1.tbz"
  checksum: "md5=37bc9bffd5fad51a343b7ff202df637b"
}
