diff --git a/pkgs/development/ocaml-modules/fiber/default.nix b/pkgs/development/ocaml-modules/fiber/default.nix new file mode 100644 index 000000000000..fe805c82a350 --- /dev/null +++ b/pkgs/development/ocaml-modules/fiber/default.nix @@ -0,0 +1,23 @@ +{ lib, buildDunePackage, dune_3, stdune, dyn }: + +buildDunePackage rec { + pname = "fiber"; + inherit (dune_3) src version; + + duneVersion = "3"; + + dontAddPrefix = true; + + buildInputs = [ stdune dyn ]; + + preBuild = '' + rm -r vendor/csexp + ''; + + meta = with lib; { + description = "Structured concurrency library"; + inherit (dune_3.meta) homepage; + maintainers = with lib.maintainers; [ ]; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 0762e7f9ad6a..1d2124078aa7 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -419,6 +419,8 @@ let inherit (pkgs) ffmpeg; }; + fiber = callPackage ../development/ocaml-modules/fiber { }; + fileutils = callPackage ../development/ocaml-modules/fileutils { }; findlib = callPackage ../development/tools/ocaml/findlib { };