A rebar3 plugin to use elixir in your applications.
Add the plugin to your rebar config:
{erl_opts, [debug_info]}.
{plugins, [
{ rebar3_elixir, ".*", {git, "https://github.com/barrel-db/rebar3_elixir.git", {branch, "master"}}}
]}.
{deps, [
{httpoison, {elixir, "httpoison" ,"0.9.0"}}
]}.
{provider_hooks, [
{pre, [{compile, {ex, compile}}]}
]}.
{elixir_opts,
[
{env, dev}
]
}.
Full example in https://github.com/barrel-db/rebar3_elixir/tree/master/examples/demo
If you want to modify elixir bin and lib directories, add to elixir opts the following:
{lib_dir, "/usr/local/lib/elixir/lib/"},
{bin_dir, "/usr/local/bin/"}
Place your elixir mix applications in ./elixir_libs. The plugin also works with a rebar release.