1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 menhir,
6 alcotest,
7 base,
8 dune-build-info,
9 either,
10 fix,
11 fpath,
12 menhirLib,
13 menhirSdk,
14 ocaml-version,
15 ocamlformat-rpc-lib,
16 ocp-indent,
17 stdio,
18 uuseg,
19 csexp,
20 astring,
21 result,
22 camlp-streams,
23 odoc,
24}:
25buildDunePackage rec {
26 pname = "ocamlformat-mlx-lib";
27 version = "0.27.0.1";
28 minimalOcamlVersion = "4.08";
29
30 src = fetchFromGitHub {
31 owner = "ocaml-mlx";
32 repo = "ocamlformat-mlx";
33 tag = version;
34 hash = "sha256-807ku1C5CxAGlMP1tDW0APE32VV/TPOgsZqi6FcFQm0=";
35 };
36
37 propagatedBuildInputs = [
38 alcotest
39 base
40 dune-build-info
41 either
42 fix
43 fpath
44 menhirLib
45 menhirSdk
46 ocaml-version
47 ocamlformat-rpc-lib
48 ocp-indent
49 stdio
50 uuseg
51 csexp
52 astring
53 result
54 camlp-streams
55 odoc
56 ];
57
58 nativeBuildInputs = [
59 menhir
60 ];
61
62 meta = {
63 homepage = "https://github.com/ocaml-mlx/ocamlformat-mlx";
64 description = "OCaml .mlx Code Formatter";
65 maintainers = with lib.maintainers; [
66 Denommus
67 ];
68 license = lib.licenses.mit;
69 };
70}