From 4983c6f46b5eb4ad126efa1f4eed7d991052b439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igorj=20Gorja=C4=89ev?= Date: Thu, 20 Nov 2025 13:36:44 +0200 Subject: [PATCH] gnu: elixir: Update to 1.19.3. * gnu/packages/elixir.scm (elixir): Update to 1.19.3. [arguments]<#:phases>{replace-paths}: Add substitution. Change-Id: Ic94e5aec86ae4e47dedaf337a690e2024e9afee4 Signed-off-by: Andreas Enge --- gnu/packages/elixir.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 0e53223f10..61537959d8 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm @@ -9,7 +9,7 @@ ;;; Copyright © 2021 Cees de Groot ;;; Copyright © 2024 Andrew Tropin ;;; Copyright © 2024, 2025 Ivan Sokolov -;;; Copyright © 2024, 2025 Igor Goryachev +;;; Copyright © 2024, 2025 Igorj Gorjaĉev ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,7 +41,7 @@ (define-public elixir (package (name "elixir") - (version "1.18.4") + (version "1.19.3") (source (origin (method git-fetch) @@ -50,7 +50,7 @@ (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0861h06x1594jsqq21lkmd96yvlfhfngrrxm6fwpqifzw4ij02iz")) + (base32 "1y5h1vn0r735g64xszz96l2cfs2c5lspglhh8syhpabx1a15vvw4")) (patches (search-patches "elixir-path-length.patch")))) (build-system gnu-build-system) (arguments @@ -89,7 +89,14 @@ "; fi\n"))) (substitute* "bin/mix" (("#!/usr/bin/env elixir") - (string-append "#!" #$output "/bin/elixir"))))) + (string-append "#!" #$output "/bin/elixir"))) + ;; We should not break the formatting, so we need to patch + ;; the following more accurately. + (substitute* "lib/mix/test/mix/tasks/cmd_test.exs" + (("File\\.mkdir_p!\\(\"priv\"\\)" all) + (string-append all "\n sh = \"" + (search-input-file inputs "/bin/sh") "\"")) + (("#!/bin/sh") "#!#{sh}")))) (add-after 'replace-paths 'pre-install-source (lambda* (#:key outputs #:allow-other-keys) (copy-recursively