gnu: Add erlfmt.

* gnu/packages/erlang.scm (erlfmt): New variable.

Change-Id: I11e86cf06875cecb0e9317f79755822b09ab1f07
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Giacomo Leidi 2025-09-10 18:51:03 +02:00 committed by Ludovic Courtès
parent 4e825e1af9
commit 5ae28fe5eb
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -198,6 +198,25 @@ built-in support for concurrency, distribution and fault tolerance.")
(license (list license:asl2.0 license:bsd-2 license:bsd-3 license:expat (license (list license:asl2.0 license:bsd-2 license:bsd-3 license:expat
license:lgpl2.0+ license:tcl/tk license:zlib)))) license:lgpl2.0+ license:tcl/tk license:zlib))))
(define-public erlfmt
(package
(name "erlfmt")
(version "1.7.0")
(source
(origin
(method url-fetch)
(uri (hexpm-uri "erlfmt" version))
(sha256
(base32 "07wchl0mg27lmxryhhkv13g8yx8wf6hw5f6a33r2d7nsynk7v67v"))))
(build-system rebar-build-system)
(native-inputs
(list erlang-getopt))
(synopsis "Opinionated Erlang code formatter")
(description "This package provides @code{erlfmt}, an opinionated Erlang
code formatter.")
(home-page "https://hexdocs.pm/erlfmt/")
(license license:asl2.0)))
(define-public emacs-erlang (define-public emacs-erlang
(package (package
(name "emacs-erlang") (name "emacs-erlang")