gnu: ocamlformat: Update to 0.21.0.

* gnu/packages/ocaml.scm (ocamlformat): Update to 0.21.0.
This commit is contained in:
Julien Lepiller 2022-05-01 16:38:38 +02:00
parent e719135a57
commit c34ac580dc
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

View File

@ -7999,7 +7999,7 @@ defined in OCaml 4.12.0.")
(define-public ocamlformat (define-public ocamlformat
(package (package
(name "ocamlformat") (name "ocamlformat")
(version "0.20.1") (version "0.21.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -8009,13 +8009,16 @@ defined in OCaml 4.12.0.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1q78gxsz763d6vbi1lyfmn7733l10qhq80bchdli9zw7sggs7nq1")))) "10vy102a0isd8cg94y61pm4qfgy74d6003dw0qn0bdmbd19r5071"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (arguments
'(#:package "ocamlformat" '(#:package "ocamlformat"
;; FIXME: The expected format is slightly different than what the #:phases
;; produced format is for test/cli/stdin.t (modify-phases %standard-phases
#:tests? #f)) (add-after 'unpack 'fix-test-format
(lambda _
(substitute* "test/cli/repl_file_errors.t/run.t"
((" ;;") ";;")))))))
(propagated-inputs (propagated-inputs
(list ocaml-version (list ocaml-version
ocaml-base ocaml-base
@ -8033,7 +8036,7 @@ defined in OCaml 4.12.0.")
ocaml-uuseg ocaml-uuseg
ocaml-uutf)) ocaml-uutf))
(native-inputs (native-inputs
(list ocaml-alcotest ocaml-ocp-indent ocaml-bisect-ppx)) (list git-minimal ocaml-alcotest ocaml-ocp-indent ocaml-bisect-ppx))
(home-page "https://github.com/ocaml-ppx/ocamlformat") (home-page "https://github.com/ocaml-ppx/ocamlformat")
(synopsis "Auto-formatter for OCaml code") (synopsis "Auto-formatter for OCaml code")
(description "OCamlFormat is a tool to automatically format OCaml code in (description "OCamlFormat is a tool to automatically format OCaml code in