mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-22 18:26:43 +01:00
gnu: elixir: Fix mix substitute.
* gnu/packages/elixir.scm (elixir): Fix mix substitute. Change-Id: I02d5849409dfbc624fcbe76b0a06b88e2ff8f4f2 Signed-off-by: Andrew Tropin <andrew@trop.in>
This commit is contained in:
parent
76534bff36
commit
373a635afa
1 changed files with 2 additions and 2 deletions
|
@ -136,7 +136,7 @@ (define-public elixir
|
||||||
;; program, for example `iex -S mix`, so we should not wrap
|
;; program, for example `iex -S mix`, so we should not wrap
|
||||||
;; mix into shell script.
|
;; mix into shell script.
|
||||||
(substitute* (string-append out "/bin/mix")
|
(substitute* (string-append out "/bin/mix")
|
||||||
(("Mix.start\\(\\)")
|
(("Mix.CLI.main\\(\\)")
|
||||||
(format #f "\
|
(format #f "\
|
||||||
~~w[GUIX_ELIXIR_LIBS ERL_LIBS]
|
~~w[GUIX_ELIXIR_LIBS ERL_LIBS]
|
||||||
|> Enum.map(&System.get_env/1)
|
|> Enum.map(&System.get_env/1)
|
||||||
|
@ -144,7 +144,7 @@ (define-public elixir
|
||||||
|> Enum.join(\":\")
|
|> Enum.join(\":\")
|
||||||
|> case do \"\" -> :ok; erl_libs -> System.put_env(\"ERL_LIBS\", erl_libs) end
|
|> case do \"\" -> :ok; erl_libs -> System.put_env(\"ERL_LIBS\", erl_libs) end
|
||||||
System.put_env(\"MIX_REBAR3\", System.get_env(\"MIX_REBAR3\", \"~a\"))
|
System.put_env(\"MIX_REBAR3\", System.get_env(\"MIX_REBAR3\", \"~a\"))
|
||||||
Mix.start()"
|
Mix.CLI.main()"
|
||||||
(search-input-file inputs "/bin/rebar3"))))
|
(search-input-file inputs "/bin/rebar3"))))
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (program)
|
(lambda (program)
|
||||||
|
|
Loading…
Reference in a new issue