1{ lib, buildDunePackage, fetchurl
2, ppx_cstruct, ppx_sexp_conv, ounit
3, lwt, cstruct, io-page, mirage-flow, xenstore, xenstore_transport
4, sexplib, cmdliner
5}:
6
7buildDunePackage rec {
8 pname = "vchan";
9 version = "6.0.1";
10
11 minimalOCamlVersion = "4.08";
12 duneVersion = "3";
13
14 src = fetchurl {
15 url = "https://github.com/mirage/ocaml-vchan/releases/download/v${version}/vchan-${version}.tbz";
16 hash = "sha256-5E7dITMVirYoxUkp8ZamRAolyhA6avXGJNAioxeBuV0=";
17 };
18
19 propagatedBuildInputs = [
20 ppx_cstruct
21 ppx_sexp_conv
22 lwt
23 cstruct
24 io-page
25 mirage-flow
26 xenstore
27 xenstore_transport
28 sexplib
29 ];
30
31 doCheck = true;
32 checkInputs = [
33 cmdliner
34 ounit
35 ];
36
37 meta = with lib; {
38 description = "Xen Vchan implementation";
39 homepage = "https://github.com/mirage/ocaml-vchan";
40 license = licenses.isc;
41 maintainers = [ maintainers.sternenseemann ];
42 };
43}