diff --git a/pkgs/development/ocaml-modules/mlx/ocamlmerlin-mlx.nix b/pkgs/development/ocaml-modules/mlx/ocamlmerlin-mlx.nix new file mode 100644 index 0000000000000..18e1d5adee7e9 --- /dev/null +++ b/pkgs/development/ocaml-modules/mlx/ocamlmerlin-mlx.nix @@ -0,0 +1,38 @@ +{ + lib, + mlx, + buildDunePackage, + ppxlib, + merlin-lib, + cppo, + csexp, + menhir, + odoc, +}: +buildDunePackage { + pname = "ocamlmerlin-mlx"; + + inherit (mlx) version src; + + minimalOCamlVersion = "4.14"; + + buildInputs = [ + ppxlib + merlin-lib + csexp + menhir + odoc + ]; + + nativeBuildInputs = [ + cppo + ]; + + meta = { + description = "Merlin support for MLX OCaml dialect"; + homepage = "https://github.com/ocaml-mlx/mlx"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.Denommus ]; + mainProgram = "ocamlmerlin-mlx"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 84d0d4032c012..093a0638c8c7d 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1371,6 +1371,8 @@ let ocamline = callPackage ../development/ocaml-modules/ocamline { }; + ocamlmerlin-mlx = callPackage ../development/ocaml-modules/mlx/ocamlmerlin-mlx.nix { }; + ocamlmod = callPackage ../development/tools/ocaml/ocamlmod { }; ocamlnet = callPackage ../development/ocaml-modules/ocamlnet { };