diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix b/nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix index da5e4580e168..69bd4a067e27 100644 --- a/nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix +++ b/nixpkgs/pkgs/development/ocaml-modules/fiber/default.nix @@ -1,20 +1,29 @@ -{ lib, buildDunePackage, fetchFromGitHub, stdune, dyn }: +{ lib +, buildDunePackage +, dyn +, fetchurl +, ocaml +, ppx_expect +, stdune +}: buildDunePackage rec { pname = "fiber"; - version = "unstable-2023-02-28"; + version = "3.7.0"; - src = fetchFromGitHub { - owner = "ocaml-dune"; - repo = "fiber"; - rev = "5563b588c1313f128eafa74d66f0626c9128d34d"; - hash = "sha256-18GfGXpu+uiIiCuLhIx5z5jRkem1nNWaQB6Ms0AE9sE="; + src = fetchurl { + url = "https://github.com/ocaml-dune/fiber/releases/download/${version}/fiber-lwt-${version}.tbz"; + hash = "sha256-hkihWuk/5pQpmc42iHQpo5E7YoKcRxTlIMwOehw7loI="; }; - duneVersion = "3"; - 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"; |