From d1f4aedbc42d51120ca726accc66db1a57b43727 Mon Sep 17 00:00:00 2001 From: Yuri Albuquerque Date: Sat, 21 Dec 2024 19:27:04 -0300 Subject: [PATCH] ocamlPackages.ocamlformat-mlx: init at 0.26.2.0 --- .../ocamlformat-mlx/ocamlformat-mlx.nix | 38 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ocamlformat-mlx/ocamlformat-mlx.nix 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 { };