Subject: [PATCH 15/20] gnu: erlang-lfe: Update to 2.1.4.

From: Igor Goryachev <[email-masked]>
Date: Thu, 13 Jun 2024 09:17:52 +0300

* gnu/packages/erlang.scm (erlang-lfe): Update to 2.1.4.

Change-Id: Ib6888b92ce45853bec9ecec0a24c759358280b5a
---
 gnu/packages/erlang.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/erlang.scm b/gnu/packages/erlang.scm
index c24d75e6c9..421869d029 100644
--- a/gnu/packages/erlang.scm
+++ b/gnu/packages/erlang.scm
@@ -768,16 +768,16 @@ (define-public rebar3-proper
 (define-public erlang-lfe
   (package
     (name "erlang-lfe")
-    (version "2.1.2")
+    (version "2.1.4")
     (source (origin
               (method git-fetch)
               (uri (git-reference
                     (url "https://github.com/lfe/lfe")
-                    (commit "v2.1.2")))
+                    (commit  (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "180hz1p2v3vb6yyzcfwircmljlnd86ln8z80lzy3mwlyrcxblvxy"))))
+                "0yyh8jmdi7c4y6vjrk3zw4iy7iyqcs5h88hx96ml9dx2im2aydlq"))))
     (build-system gnu-build-system)
     (arguments
      (list
@@ -825,6 +825,11 @@ (define-public erlang-lfe
               (when tests?
                 (begin
                   (setenv "REBAR_CACHE_DIR" "/tmp")
+                  (substitute* "Makefile"
+                    ;; More strict argument parsing since rebar v3.23.0 seems
+                    ;; to break backwards compatibility. See more info at:
+                    ;; https://github.com/erlang/rebar3/pull/2813.
+                    (("-n 20,ct") "-n 20, ct"))
                   (invoke "make" "-j" (number->string (parallel-job-count))
                           "tests"))))))))
     (native-inputs (list rebar3 rebar3-proper erlang-proper))
-- 
2.45.1