opam-version: "2.0"
maintainer: "jonathan.ludlam@citrix.com"
authors: [ "Jonathan Ludlam" "David Scott" "Thomas Sanders" ]
license: "LGPL-2 with OCaml linking exception"
homepage: "https://github.com/xapi-project/nbd"
doc: "https://xapi-project.github.io/nbd/nbd/index.html"
dev-repo: "git+https://github.com/xapi-project/nbd.git"
bug-reports: "https://github.com/xapi-project/nbd/issues"

build: ["dune" "build" "-p" name "-j" jobs]
run-test: ["dune" "runtest" "-p" name "-j" jobs]

depends: [
  "ocaml" {>= "4.03.0"}
  "dune" {>= "1.0"}
  "alcotest" {with-test}
  "alcotest-lwt" {with-test}
  "io-page-unix" {with-test}
  "cstruct" {>= "3.1.0"}
  "io-page"
  "mirage-block-lwt"
  "mirage-types-lwt" {>= "3.0.0"}
  "lwt" {>= "2.7.0"}
  "lwt_log"
  "result"
  "rresult"
  "sexplib"
  "uri"
  "ppx_cstruct" {>= "3.1.0"}
  "ppx_sexp_conv" {>= "v0.9.0"}
]
tags: [ "org:mirage" "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/v4.0.3.tar.gz"
  checksum: "sha256=a86533562fc4fd2d284cb525318141f1d673cd9fcc5ad3d1707622e54cb55287"
}
