restore buildMix and its bootstrapper (#122374)

* restore mixBuild

remove bootstrapper by going through ERL_LIBS
mix will use ERL_LIBS to find compiled dependencies

Co-authored-by: Zach <zach@hipcreativeinc.com>
This commit is contained in:
ydlr
2021-05-17 08:05:40 +09:00
committed by GitHub
co-authored by Zach
parent 5e9437ef57
commit a2f3a63953
3 changed files with 88 additions and 0 deletions
+2
View File
@@ -34,6 +34,8 @@ Erlang.mk works exactly as expected. There is a bootstrap process that needs to
For Elixir applications use `mixRelease` to make a release. See examples for more details.
There is also a `buildMix` helper, whose behavior is closer to that of `buildErlangMk` and `buildRebar3`. The primary difference is that mixRelease makes a release, while buildMix only builds the package, making it useful for libraries and other dependencies.
## How to Install BEAM Packages {#how-to-install-beam-packages}
BEAM builders are not registered at the top level, simply because they are not relevant to the vast majority of Nix users. To install any of those builders into your profile, refer to them by their attribute path `beamPackages.rebar3`: