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