Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supersonido/rebar_mix
rebar3 plugin for building Elixir dependencies with mix
https://github.com/supersonido/rebar_mix
elixir erlang rebar3
Last synced: about 1 month ago
JSON representation
rebar3 plugin for building Elixir dependencies with mix
- Host: GitHub
- URL: https://github.com/supersonido/rebar_mix
- Owner: Supersonido
- License: apache-2.0
- Created: 2018-10-04T17:03:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T12:37:20.000Z (over 2 years ago)
- Last Synced: 2024-10-12T13:23:45.952Z (about 1 month ago)
- Topics: elixir, erlang, rebar3
- Language: Erlang
- Size: 39.1 KB
- Stars: 53
- Watchers: 6
- Forks: 20
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rebar_mix
=====A rebar plugin for building Elixir dependencies with mix.
Requirements:
* rebar3 3.7.0 or above
* Elixir 1.7.4 or above, unless your Elixir dependencies have no transitive compile time dependencies in which case any version starting with 1.7.0 may work.
* `mix local.hex`, while mix hex isn't used, mix checks for it and will block with a message `Could not find Hex, which is needed to build dependency ...` if it isn't found. Running `mix local.hex` will install mix's hex script archive and make the check happy.Use
---Add the plugin to your rebar config:
``` erlang
{plugins, [rebar_mix]}.
{provider_hooks, [
{post, [{compile, {mix, consolidate_protocols}}]}
]}.
```The `consolidate_protocols` hook places beams in `_build//consolidated` that will need to be included in a release when built. Using:
``` erlang
{overlay, [{copy, "{{base_dir}}/consolidated", "releases/{{release_version}}/consolidated"}]}
```And update your `vm.args.src` to include:
``` erlang
-pa releases/${REL_VSN}/consolidated
```