Archived
1
0
Fork 0

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.
This commit is contained in:
Tobias Geerinckx-Rice 2021-10-14 20:53:57 +02:00
parent ab3a59453e
commit cf25ba2d77
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -35,7 +35,7 @@
(define-public elixir (define-public elixir
(package (package
(name "elixir") (name "elixir")
(version "1.12.2") (version "1.12.3")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -44,7 +44,7 @@
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1rwmwnqxhjcdx9niva9ardx90p1qi4axxh72nw9k15hhlh2jy29x")) (base32 "07fisdx755cgyghwy95gvdds38sh138z56biariml18jjw5mk3r6"))
(patches (search-patches "elixir-path-length.patch")))) (patches (search-patches "elixir-path-length.patch"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
@ -56,8 +56,7 @@
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'make-git-checkout-writable (add-after 'unpack 'make-git-checkout-writable
(lambda _ (lambda _
(for-each make-file-writable (find-files ".")) (for-each make-file-writable (find-files "."))))
#t))
(add-after 'make-git-checkout-writable 'replace-paths (add-after 'make-git-checkout-writable 'replace-paths
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
@ -82,8 +81,7 @@
"; fi"))) "; fi")))
(substitute* "bin/mix" (substitute* "bin/mix"
(("#!/usr/bin/env elixir") (("#!/usr/bin/env elixir")
(string-append "#!" out "/bin/elixir")))) (string-append "#!" out "/bin/elixir"))))))
#t))
(add-before 'build 'make-current (add-before 'build 'make-current
;; The Elixir compiler checks whether or not to compile files by ;; The Elixir compiler checks whether or not to compile files by
;; inspecting their timestamps. When the timestamp is equal to the ;; inspecting their timestamps. When the timestamp is equal to the
@ -93,13 +91,11 @@
(for-each (lambda (file) (for-each (lambda (file)
(let ((recent 1400000000)) (let ((recent 1400000000))
(utime file recent recent 0 0))) (utime file recent recent 0 0)))
(find-files "." ".*")) (find-files "." ".*"))))
#t))
(add-before 'check 'set-home (add-before 'check 'set-home
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; Some tests require access to a home directory. ;; Some tests require access to a home directory.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp")))
#t))
(delete 'configure)))) (delete 'configure))))
(inputs (inputs
`(("erlang" ,erlang) `(("erlang" ,erlang)