summaryrefslogtreecommitdiff
path: root/gnu/packages/elixir.scm
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-10-14 20:53:57 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-10-14 20:55:22 +0200
commitcf25ba2d773435af7af2cd315185acb16dcc6b58 (patch)
treebbbff89adec992742ad553928a39fa7c58e2dda9 /gnu/packages/elixir.scm
parentab3a59453eb3bff9cf330d9301122efeec81d05c (diff)
gnu: elixir: Update to 1.12.3.
* gnu/packages/elixir.scm (elixir): Update to 1.12.3. [arguments]: Don't explicitly return #t from phases.
Diffstat (limited to 'gnu/packages/elixir.scm')
-rw-r--r--gnu/packages/elixir.scm16
1 files changed, 6 insertions, 10 deletions
diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index 2ceb3b553fe..6ccac68e70d 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -35,7 +35,7 @@
35(define-public elixir 35(define-public elixir
36 (package 36 (package
37 (name "elixir") 37 (name "elixir")
38 (version "1.12.2") 38 (version "1.12.3")
39 (source 39 (source
40 (origin 40 (origin
41 (method git-fetch) 41 (method git-fetch)
@@ -44,7 +44,7 @@
44 (commit (string-append "v" version)))) 44 (commit (string-append "v" version))))
45 (file-name (git-file-name name version)) 45 (file-name (git-file-name name version))
46 (sha256 46 (sha256
47 (base32 "1rwmwnqxhjcdx9niva9ardx90p1qi4axxh72nw9k15hhlh2jy29x")) 47 (base32 "07fisdx755cgyghwy95gvdds38sh138z56biariml18jjw5mk3r6"))
48 (patches (search-patches "elixir-path-length.patch")))) 48 (patches (search-patches "elixir-path-length.patch"))))
49 (build-system gnu-build-system) 49 (build-system gnu-build-system)
50 (arguments 50 (arguments
@@ -56,8 +56,7 @@
56 (modify-phases %standard-phases 56 (modify-phases %standard-phases
57 (add-after 'unpack 'make-git-checkout-writable 57 (add-after 'unpack 'make-git-checkout-writable
58 (lambda _ 58 (lambda _
59 (for-each make-file-writable (find-files ".")) 59 (for-each make-file-writable (find-files "."))))
60 #t))
61 (add-after 'make-git-checkout-writable 'replace-paths 60 (add-after 'make-git-checkout-writable 'replace-paths
62 (lambda* (#:key inputs outputs #:allow-other-keys) 61 (lambda* (#:key inputs outputs #:allow-other-keys)
63 (let ((out (assoc-ref outputs "out"))) 62 (let ((out (assoc-ref outputs "out")))
@@ -82,8 +81,7 @@
82 "; fi"))) 81 "; fi")))
83 (substitute* "bin/mix" 82 (substitute* "bin/mix"
84 (("#!/usr/bin/env elixir") 83 (("#!/usr/bin/env elixir")
85 (string-append "#!" out "/bin/elixir")))) 84 (string-append "#!" out "/bin/elixir"))))))
86 #t))
87 (add-before 'build 'make-current 85 (add-before 'build 'make-current
88 ;; The Elixir compiler checks whether or not to compile files by 86 ;; The Elixir compiler checks whether or not to compile files by
89 ;; inspecting their timestamps. When the timestamp is equal to the 87 ;; inspecting their timestamps. When the timestamp is equal to the
@@ -93,13 +91,11 @@
93 (for-each (lambda (file) 91 (for-each (lambda (file)
94 (let ((recent 1400000000)) 92 (let ((recent 1400000000))
95 (utime file recent recent 0 0))) 93 (utime file recent recent 0 0)))
96 (find-files "." ".*")) 94 (find-files "." ".*"))))
97 #t))
98 (add-before 'check 'set-home 95 (add-before 'check 'set-home
99 (lambda* (#:key inputs #:allow-other-keys) 96 (lambda* (#:key inputs #:allow-other-keys)
100 ;; Some tests require access to a home directory. 97 ;; Some tests require access to a home directory.
101 (setenv "HOME" "/tmp") 98 (setenv "HOME" "/tmp")))
102 #t))
103 (delete 'configure)))) 99 (delete 'configure))))
104 (inputs 100 (inputs
105 `(("erlang" ,erlang) 101 `(("erlang" ,erlang)