diff --git a/pkgs/development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx.nix b/pkgs/development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx.nix new file mode 100644 index 0000000000000..e075ae2c52db9 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx.nix @@ -0,0 +1,38 @@ +{ + lib, + buildDunePackage, + fetchFromGitHub, + cmdliner, + odoc, + ocamlformat-mlx-lib, + re, +}: +buildDunePackage rec { + pname = "ocamlformat-mlx"; + version = "0.26.2.0"; + minimalOcamlVersion = "4.08"; + + src = fetchFromGitHub { + owner = "ocaml-mlx"; + repo = "ocamlformat-mlx"; + rev = version; + hash = "sha256-I9ZP8Ory/CRFbHUCe5NkZKKYMwtL1gl8xw965k5R718="; + }; + + buildInputs = [ + cmdliner + re + odoc + ocamlformat-mlx-lib + ]; + + meta = { + homepage = "https://github.com/ocaml-mlx/ocamlformat-mlx"; + description = "Auto-formatter for OCaml .mlx code"; + maintainers = with lib.maintainers; [ + Denommus + ]; + license = lib.licenses.mit; + mainProgram = "ocamlformat-mlx"; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 8260e65f2e11f..4a550ea96405a 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1349,6 +1349,8 @@ let ocamlformat-lib = callPackage ../development/ocaml-modules/ocamlformat/ocamlformat-lib.nix { }; + ocamlformat-mlx = callPackage ../development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx.nix { }; + ocamlformat-mlx-lib = callPackage ../development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx-lib.nix { }; ocamlformat-rpc-lib = callPackage ../development/ocaml-modules/ocamlformat/ocamlformat-rpc-lib.nix { };