depot/third_party/nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
715 B
Nix

{ lib
, buildDunePackage
, dyn
, fetchurl
, ocaml
, ppx_expect
, stdune
}:
buildDunePackage rec {
pname = "fiber";
version = "3.7.0";
src = fetchurl {
url = "https://github.com/ocaml-dune/fiber/releases/download/${version}/fiber-lwt-${version}.tbz";
hash = "sha256-hkihWuk/5pQpmc42iHQpo5E7YoKcRxTlIMwOehw7loI=";
};
buildInputs = [ stdune dyn ];
checkInputs = [ ppx_expect ];
# Tests are Ocaml version dependent
# https://github.com/ocaml-dune/fiber/issues/27
doCheck = false;
meta = with lib; {
description = "Structured concurrency library";
homepage = "https://github.com/ocaml-dune/fiber";
maintainers = with lib.maintainers; [ ];
license = licenses.mit;
};
}