diff options
| author | Andrew Tropin <andrew@trop.in> | 2024-02-19 13:20:41 +0300 |
|---|---|---|
| committer | Andrew Tropin <andrew@trop.in> | 2024-02-19 17:00:47 +0300 |
| commit | ecfb6452cdd443e5b4a7391df015df41fb032a09 (patch) | |
| tree | ff88945bfa90cf519bd2dc18460382b8240ab7e7 /gnu | |
| parent | 55c94d68df7b020cec961cefd4f53a134270f321 (diff) | |
gnu: elixir: Set default value for MIX_REBAR3.
* gnu/packages/elixir.scm (elixir): Set default value for MIX_REBAR3.
Change-Id: Ic7332a3c997a26ca42229a6f2040f20d9b19aad1
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/elixir.scm | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gnu/packages/elixir.scm b/gnu/packages/elixir.scm index 2d11707711b..2885ddbd616 100644 --- a/gnu/packages/elixir.scm +++ b/gnu/packages/elixir.scm | |||
| @@ -108,18 +108,21 @@ | |||
| 108 | ;; program, for example `iex -S mix`, so we should not wrap | 108 | ;; program, for example `iex -S mix`, so we should not wrap |
| 109 | ;; mix into shell script. | 109 | ;; mix into shell script. |
| 110 | (substitute* (string-append out "/bin/mix") | 110 | (substitute* (string-append out "/bin/mix") |
| 111 | (("Mix.start\\(\\)") "\ | 111 | (("Mix.start\\(\\)") |
| 112 | ~w[GUIX_ELIXIR_LIBS ERL_LIBS] | 112 | (format #f "\ |
| 113 | ~~w[GUIX_ELIXIR_LIBS ERL_LIBS] | ||
| 113 | |> Enum.map(&System.get_env/1) | 114 | |> Enum.map(&System.get_env/1) |
| 114 | |> Enum.reject(&is_nil/1) | 115 | |> Enum.reject(&is_nil/1) |
| 115 | |> Enum.join(\":\") | 116 | |> Enum.join(\":\") |
| 116 | |> case do \"\" -> :ok; erl_libs -> System.put_env(\"ERL_LIBS\", erl_libs) end | 117 | |> case do \"\" -> :ok; erl_libs -> System.put_env(\"ERL_LIBS\", erl_libs) end |
| 117 | Mix.start()")) | 118 | System.put_env(\"MIX_REBAR3\", System.get_env(\"MIX_REBAR3\", \"~a\")) |
| 119 | Mix.start()" | ||
| 120 | (search-input-file inputs "/bin/rebar3")))) | ||
| 118 | (for-each (lambda (program) | 121 | (for-each (lambda (program) |
| 119 | (wrap-program (string-append out "/bin/" program) | 122 | (wrap-program (string-append out "/bin/" program) |
| 120 | '("ERL_LIBS" prefix ("${GUIX_ELIXIR_LIBS}")))) | 123 | '("ERL_LIBS" prefix ("${GUIX_ELIXIR_LIBS}")))) |
| 121 | programs))))))) | 124 | programs))))))) |
| 122 | (inputs (list erlang git)) | 125 | (inputs (list erlang rebar3 git)) |
| 123 | (native-search-paths | 126 | (native-search-paths |
| 124 | (list (search-path-specification | 127 | (list (search-path-specification |
| 125 | (variable "GUIX_ELIXIR_LIBS") | 128 | (variable "GUIX_ELIXIR_LIBS") |
