opam-version: "2.0"
maintainer: "xen-api@lists.xen.org"
authors: [ "Jonathan Ludlam" "David Scott" ]
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
homepage: "https://github.com/xapi-project/nbd"
dev-repo: "git+https://github.com/xapi-project/nbd.git"
bug-reports: "https://github.com/xapi-project/nbd/issues"

build: [
  ["jbuilder" "build" "-p" name "-j" jobs]
  ["jbuilder" "runtest" "-p" name] {with-test}
]
depends: [
  "ocaml" {>= "4.02.3"}
  "jbuilder" {>= "1.0+beta10"}
  "ounit" {with-test}
  "ppx_tools"
  "lwt" {>= "2.6.0" & < "3.0.0"}
  "cstruct" {>= "1.9.0" & < "3.0.0"}
  "cmdliner"
  "sexplib" {< "v0.11"}
  "mirage-block-unix" {< "2.5.0"}
  "io-page" {< "2.0.0"}
  "mirage-types-lwt" {= "2.8.0"}
  "mirage-types" {= "2.8.0"}
  "uri"
  "ppx_deriving"
  "ppx_sexp_conv" {!= "113.33.00+4.03" & < "v0.11"}
]
tags: [ "org:xapi-project" ]
synopsis: "Network Block Device (NBD) protocol implementation"
description: """
This library allows applications to export and consume block
devices using the NBD protocol (as used by Linux, qemu etc)"""
url {
  src: "https://github.com/xapi-project/nbd/archive/v2.2.0/nbd-2.2.0.tar.gz"
  checksum: "md5=da820d87b2ace82bc70e4bbeaca350f1"
}
