1{
2 lib,
3 buildDunePackage,
4 dyn,
5 fetchurl,
6 ppx_expect,
7 stdune,
8}:
9
10buildDunePackage rec {
11 pname = "fiber";
12 version = "3.7.0";
13
14 src = fetchurl {
15 url = "https://github.com/ocaml-dune/fiber/releases/download/${version}/fiber-lwt-${version}.tbz";
16 hash = "sha256-hkihWuk/5pQpmc42iHQpo5E7YoKcRxTlIMwOehw7loI=";
17 };
18
19 buildInputs = [
20 stdune
21 dyn
22 ];
23
24 checkInputs = [ ppx_expect ];
25
26 # Tests are Ocaml version dependent
27 # https://github.com/ocaml-dune/fiber/issues/27
28 doCheck = false;
29
30 meta = with lib; {
31 description = "Structured concurrency library";
32 homepage = "https://github.com/ocaml-dune/fiber";
33 maintainers = [ ];
34 license = licenses.mit;
35 };
36}