about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/mirage-channel/default.nix
blob: bdafeb43054983552c81304fc0c2e980678b5f45 (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
{ lib, fetchurl, buildDunePackage
, cstruct, logs, lwt, mirage-flow
, alcotest, mirage-flow-combinators
}:

buildDunePackage rec {
  pname = "mirage-channel";
  version = "4.1.0";

  minimalOCamlVersion = "4.07";

  src = fetchurl {
    url = "https://github.com/mirage/mirage-channel/releases/download/v${version}/mirage-channel-${version}.tbz";
    sha256 = "sha256-sBdoUdTd9ZeNcHK0IBGBeOYDDqULM7EYX+Pz2f2nIQA=";
  };

  propagatedBuildInputs = [ cstruct logs lwt mirage-flow ];

  doCheck = true;
  checkInputs = [ alcotest mirage-flow-combinators ];

  meta = {
    description = "Buffered channels for MirageOS FLOW types";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.vbgl ];
    homepage = "https://github.com/mirage/mirage-channel";
  };
}