Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlPackages.ocamlformat-mlx: init at 0.26.2.0 #367235

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions pkgs/development/ocaml-modules/ocamlformat-mlx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
cmdliner,
odoc,
ocamlformat-mlx-lib,
re,
}:
buildDunePackage rec {
pname = "ocamlformat-mlx";
minimalOcamlVersion = "4.08";

inherit (ocamlformat-mlx-lib) version src meta;

buildInputs = [
cmdliner
re
odoc
ocamlformat-mlx-lib
];
}
70 changes: 70 additions & 0 deletions pkgs/development/ocaml-modules/ocamlformat-mlx/lib.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
menhir,
alcotest,
base,
dune-build-info,
either,
fix,
fpath,
menhirLib,
menhirSdk,
ocaml-version,
ocamlformat-rpc-lib,
ocp-indent,
stdio,
uuseg,
csexp,
astring,
result,
camlp-streams,
odoc,
}:
buildDunePackage rec {
pname = "ocamlformat-mlx-lib";
version = "0.26.2.0";
minimalOcamlVersion = "4.08";

src = fetchFromGitHub {
owner = "ocaml-mlx";
repo = "ocamlformat-mlx";
rev = version;
hash = "sha256-I9ZP8Ory/CRFbHUCe5NkZKKYMwtL1gl8xw965k5R718=";
};

propagatedBuildInputs = [
alcotest
base
dune-build-info
either
fix
fpath
menhirLib
menhirSdk
ocaml-version
ocamlformat-rpc-lib
ocp-indent
stdio
uuseg
csexp
astring
result
camlp-streams
odoc
];

nativeBuildInputs = [
menhir
];

meta = {
homepage = "https://github.com/ocaml-mlx/ocamlformat-mlx";
description = "OCaml .mlx Code Formatter";
maintainers = with lib.maintainers; [
Denommus
];
license = lib.licenses.mit;
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,10 @@ let

ocamlformat-lib = callPackage ../development/ocaml-modules/ocamlformat/ocamlformat-lib.nix { };

ocamlformat-mlx = callPackage ../development/ocaml-modules/ocamlformat-mlx { };

ocamlformat-mlx-lib = callPackage ../development/ocaml-modules/ocamlformat-mlx/lib.nix { };

ocamlformat-rpc-lib = callPackage ../development/ocaml-modules/ocamlformat/ocamlformat-rpc-lib.nix { };

ocamlfuse = callPackage ../development/ocaml-modules/ocamlfuse { };
Expand Down
Loading