I found this solution this morning:
https://github.com/alco/erlang-mix-project
Why does this link answer a substantive question:
1.- we have the main elixir project under rssutil /
2.- we have the library myerlib.erl erlang, which we should use from the elixir code that we have in rssutil / lib /
3.- One solution is to create rssutil / src / and copy myerlib.erl and compile as the first answer tell us earlier.
4.- But we want to manage our erlang libraries, such as deps elixir proyects. To do this, we need the elixir to consider the myerlib erlang library as an elixir project.
5.- then add myerlib as dep in rssutil / mix.exs
defp deps do [.......... {:myerlib, path:deps/myerlib"} ] end
6.- We need to create rssutil / deps / myliberl / with the following mix.exs file:
defmodule Myerlib.Mixfile do use Mix.Project def project do [app: :myerlib, version: "0.0.1", language: :erlang, deps: deps] end def application do [applications: [], mod: {:myerlib, []}] end defp deps do [ {:mix_erlang_tasks, "0.1.0"}, ] end end
Note that the language is now erlang, and that we need as myerlib dep /
mix_erlang_tasks
7.- also create rssutil / deps / myerlib / src / myerlib.erl with your "old" erlang code
8.- In the rssutil / deps / myerlib / directory, where you have the latest mix.exs file, write
$ mix deps.get $ mix compile
9.- Go to the rssutil / directory as well
$ mix deps.get $ iex -S mix
10.- And in the end, you can call erlang s functions in myerlib.erl with:
iex>: myerlib.any_function_you_know_to_have_here (...)
what all.
In any case, thank you very much.