Subject: [bug#53565] [PATCH] Upgrade Elixir to 1.13..2

From: Cees de Groot <[email-masked]>
Date: Thu, 27 Jan 2022 02:45:40 +0000

>From 536012ef4a83b1b0d6b2b7b862b394943458deab Mon Sep 17 00:00:00 2001
From: Cees de Groot <[email-masked]>
Date: Wed, 26 Jan 2022 21:43:00 -0500
Subject: [PATCH] Bump Elixir to 1.13.2

---
 gnu/packages/elixir.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index 87177acce0..e0c4b47469 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -35,7 +35,7 @@ (define-module (gnu packages elixir)
 (define-public elixir
   (package
     (name "elixir")
-    (version "1.12.3")
+    (version "1.13.2")
     (source
      (origin
        (method git-fetch)
@@ -44,7 +44,7 @@ (define-public elixir
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "07fisdx755cgyghwy95gvdds38sh138z56biariml18jjw5mk3r6"))
+        (base32 "1d3mk7abn3rk536vmsfbm4smj52rljff6s40sndg0i7p6dl3kzxa"))
        (patches (search-patches "elixir-path-length.patch"))))
     (build-system gnu-build-system)
     (arguments
@@ -69,7 +69,7 @@ (define-public elixir
                  (("#!/bin/sh")
                   (string-append "#!" (which "sh"))))
                (substitute* "bin/elixir"
-                 (("ERTS_BIN=")
+                 (("^ERTS_BIN=$")
                   (string-append
                     "ERTS_BIN="
                     ;; Elixir Releases will prepend to ERTS_BIN the path of a copy of erl.
@@ -78,7 +78,7 @@ (define-public elixir
                     ;; erl binary in Guix store.
                     "\nif [ -z \"$ERTS_BIN\" ]; then ERTS_BIN="
                     (string-drop-right (which "erl") 3)
-                    "; fi")))
+                    "; fi\n")))
                (substitute* "bin/mix"
                  (("#!/usr/bin/env elixir")
                   (string-append "#!" out "/bin/elixir"))))))
--
2.34.0