about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/vchan/default.nix
blob: 872d11606ff67de8e1529444450e12ef1cd17224 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib, buildDunePackage, fetchurl
, ppx_cstruct, ppx_sexp_conv, ounit
, lwt, cstruct, io-page, mirage-flow, xenstore, xenstore_transport
, sexplib, cmdliner
}:

buildDunePackage rec {
  pname = "vchan";
  version = "6.0.1";

  minimalOCamlVersion = "4.08";

  src = fetchurl {
    url = "https://github.com/mirage/ocaml-vchan/releases/download/v${version}/vchan-${version}.tbz";
    sha256 = "sha256-5E7dITMVirYoxUkp8ZamRAolyhA6avXGJNAioxeBuV0=";
  };

  propagatedBuildInputs = [
    ppx_cstruct
    ppx_sexp_conv
    lwt
    cstruct
    io-page
    mirage-flow
    xenstore
    xenstore_transport
    sexplib
  ];

  doCheck = true;
  checkInputs = [
    cmdliner
    ounit
  ];

  meta = with lib; {
    description = "Xen Vchan implementation";
    homepage = "https://github.com/mirage/ocaml-vchan";
    license = licenses.isc;
    maintainers = [ maintainers.sternenseemann ];
  };
}