summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar Köök <oskarkook@maatriks.ee>2019-10-24 23:37:38 +0300
committerLudovic Courtès <ludo@gnu.org>2019-11-16 17:43:49 +0100
commit2148e68d333f0dbd3c455bc1ced4ffa4361ede3d (patch)
tree727240d080261bdcf0b0c099074214e978f07554
parentb1077c2234c47902990a6d27f471fd6b23a2df06 (diff)
gnu: elixir: Update to 1.9.2.
* gnu/packages/elixir.scm (elixir): Update to 1.9.2. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/elixir.scm20
1 files changed, 16 insertions, 4 deletions
diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm
index 88ada71aea9..144a8cc4e7e 100644
--- a/gnu/packages/elixir.scm
+++ b/gnu/packages/elixir.scm
@@ -33,7 +33,7 @@
33(define-public elixir 33(define-public elixir
34 (package 34 (package
35 (name "elixir") 35 (name "elixir")
36 (version "1.8.2") 36 (version "1.9.2")
37 (source 37 (source
38 (origin 38 (origin
39 (method git-fetch) 39 (method git-fetch)
@@ -42,7 +42,7 @@
42 (commit (string-append "v" version)))) 42 (commit (string-append "v" version))))
43 (file-name (git-file-name name version)) 43 (file-name (git-file-name name version))
44 (sha256 44 (sha256
45 (base32 "1n77cpcl2b773gmj3m9s24akvj9gph9byqbmj2pvlsmby4aqwckq")) 45 (base32 "19yn6nx6r627f5zbyc7ckgr96d6b45sgwx95n2gp2imqwqvpj8wc"))
46 (patches (search-patches "elixir-path-length.patch")))) 46 (patches (search-patches "elixir-path-length.patch"))))
47 (build-system gnu-build-system) 47 (build-system gnu-build-system)
48 (arguments 48 (arguments
@@ -63,9 +63,21 @@
63 "lib/mix/lib/mix/scm/git.ex") 63 "lib/mix/lib/mix/scm/git.ex")
64 (("(cmd\\(['\"])git" _ prefix) 64 (("(cmd\\(['\"])git" _ prefix)
65 (string-append prefix (which "git")))) 65 (string-append prefix (which "git"))))
66 (substitute* '("lib/mix/lib/mix/release.ex"
67 "lib/mix/lib/mix/tasks/release.init.ex")
68 (("#!/bin/sh")
69 (string-append "#!" (which "sh"))))
66 (substitute* "bin/elixir" 70 (substitute* "bin/elixir"
67 (("ERL_EXEC=\"erl\"") 71 (("ERTS_BIN=")
68 (string-append "ERL_EXEC=" (which "erl")))) 72 (string-append
73 "ERTS_BIN="
74 ;; Elixir Releases will prepend to ERTS_BIN the path of a copy of erl.
75 ;; We detect if a release is being generated by checking the initial ERTS_BIN
76 ;; value: if it's empty, we are not in release mode and can point to the actual
77 ;; erl binary in Guix store.
78 "\nif [ -z \"$ERTS_BIN\" ]; then ERTS_BIN="
79 (string-drop-right (which "erl") 3)
80 "; fi")))
69 (substitute* "bin/mix" 81 (substitute* "bin/mix"
70 (("#!/usr/bin/env elixir") 82 (("#!/usr/bin/env elixir")
71 (string-append "#!" out "/bin/elixir")))) 83 (string-append "#!" out "/bin/elixir"))))