opam-version: "2.0"
maintainer: "dave@recoil.org"
authors: ["David Scott"]
license: "ISC"
homepage: "https://github.com/mirage/ocaml-qcow"
dev-repo: "git+https://github.com/mirage/ocaml-qcow.git"
bug-reports: "https://github.com/mirage/ocaml-qcow/issues"
tags: ["org:mirage"]
build: [
  [make "PREFIX=%{prefix}%"]
  ["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: [make "PREFIX=%{prefix}%" "install"]
remove: [
  [make "PREFIX=%{prefix}%" "uninstall"]
]
depends: [
  "ocaml" {>= "4.02.0"}
  "base-bytes"
  "cstruct" {< "3.0.0"}
  "type_conv"
  "result"
  "io-page" {< "2.0.0"}
  "mirage-types-lwt" {>= "2.6.0" & < "3.0.0"}
  "lwt"
  "mirage-block" {>= "0.2" & < "1.0.0"}
  "mirage-block-unix" {>= "2.1.0" & < "2.5.0"}
  "cmdliner"
  "sexplib" {< "113.01.00"}
  "ocamlfind" {build}
  "oasis" {build}
  "ounit" {with-test}
  "mirage-block-ramdisk" {with-test}
  "ocamlbuild" {build}
]
synopsis: "Read and write images in Qcow2 format"
description: """
If you want to `create`, `read`, `write` or analyse qcow2-formatted
data in pure OCaml then this library is for you!"""
url {
  src: "https://github.com/mirage/ocaml-qcow/archive/v0.1.tar.gz"
  checksum: "md5=09f1042063f2eda5a38503cde0e54b8b"
}
