unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Xinglu Chen <public@yoctocell.xyz>
To: 49150@debbugs.gnu.org
Subject: [bug#49150] [PATCH 9/9] gnu: Add ocamlformat.
Date: Mon, 21 Jun 2021 12:02:04 +0200	[thread overview]
Message-ID: <6b6c96975b9ad8872f6cb0f39fb53881af4bca2e.1624269361.git.public@yoctocell.xyz> (raw)
In-Reply-To: <cover.1624269361.git.public@yoctocell.xyz>

* gnu/packages/ocaml.scm (ocamlformat): New variable.
---
 gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index b78e3ab2fa..ca15b86c8a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7103,6 +7103,52 @@ or the list of statically linked libraries with their versions.  It supports
 reporting the version from the version control system during development to
 get an precise reference of when the executable was built.")))
 
+(define-public ocamlformat
+  (package
+    (name "ocamlformat")
+    (version "0.18.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/ocaml-ppx/ocamlformat")
+              (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "0n6363km8xr81pvyk453n6h2mb0256c5yxw3p1li4dn83f3lwxr1"))))
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "ocamlformat"
+       ;; FIXME: The expected format is slightly different than what the
+       ;; produced format is for test/cli/stdin.t
+       #:tests? #f))
+    (propagated-inputs
+      `(("ocaml-version" ,ocaml-version)
+        ("ocaml-base" ,ocaml-base)
+        ("ocaml-cmdliner" ,ocaml-cmdliner)
+        ("ocaml-dune-build-info" ,ocaml-dune-build-info)
+        ("ocaml-fix" ,ocaml-fix)
+        ("ocaml-fpath" ,ocaml-fpath)
+        ("ocaml-menhir" ,ocaml-menhir)
+        ("ocaml-menhir-lib" ,ocaml-menhir-lib)
+        ("ocaml-menhir-sdk" ,ocaml-menhir-sdk)
+        ("ocaml-odoc" ,ocaml-odoc)
+        ("ocaml-ppxlib" ,ocaml-ppxlib)
+        ("ocaml-re" ,ocaml-re)
+        ("ocaml-stdio" ,ocaml-stdio)
+        ("ocaml-uuseg" ,ocaml-uuseg)
+        ("ocaml-uutf" ,ocaml-uutf)))
+    (native-inputs
+      `(("ocaml-alcotest" ,ocaml-alcotest)
+        ("ocaml-ocp-indent" ,ocaml-ocp-indent)
+        ("ocaml-bisect-ppx" ,ocaml-bisect-ppx)))
+    (home-page "https://github.com/ocaml-ppx/ocamlformat")
+    (synopsis "Auto-formatter for OCaml code")
+    (description "OCamlFormat is a tool to automatically format OCaml code in
+a uniform style.")
+    (license license:expat)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






  parent reply	other threads:[~2021-06-21 10:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1 Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 2/9] gnu: Add ocaml-menhir-lib Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk Xinglu Chen
2021-06-27 13:20   ` Julien Lepiller
2021-06-27 13:37     ` Xinglu Chen
2021-08-04  8:23       ` Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 4/9] gnu: Add ocaml-uucd Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 5/9] gnu: Add ocaml-uucp Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 6/9] gnu: Add ocaml-uuseg Xinglu Chen
2021-06-21 10:02 ` [bug#49150] [PATCH 7/9] gnu: Add ocaml-fix Xinglu Chen
2021-06-21 10:02 ` [bug#49150] [PATCH 8/9] gnu: Add ocaml-dune-build-info Xinglu Chen
2021-06-21 10:02 ` Xinglu Chen [this message]
2021-08-08 20:45 ` bug#49150: [PATCH 0/9] Add ocamlformat and dependencies Julien Lepiller
2021-08-09  9:36   ` [bug#49150] " Xinglu Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b6c96975b9ad8872f6cb0f39fb53881af4bca2e.1624269361.git.public@yoctocell.xyz \
    --to=public@yoctocell.xyz \
    --cc=49150@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).