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