If you're executing Elixir code within the context of the mix project, you 
can invoke Mix.Project.deps_paths/{0,1} 
<https://hexdocs.pm/mix/Mix.Project.html#deps_paths/1> to figure this out.

On Tuesday, May 11, 2021 at 8:45:38 PM UTC-7 [email protected] wrote:

>
> Hi!
>
>     There is an effort at the moment in NixOS to add mix dependency in the 
> store. The idea being that a dependency with a particular version and name 
> can be found and nix understands that a mix project has that particular 
> dependency.
>
>     Currently parsing the mix.lock can give the dependency tree.
>
>     When building a particular dependency which has itself dependencies. 
> How can mix be made aware of where those dependencies are?
>     To clarify a little. `plug` has a dependency on `mime` `plug_crypto` 
> and `telemetry`. Once those three dependencies have been compiled, when 
> it's time to compile plug, how can I make mix understand where those 
> dependencies are?
>     Should the path of those dependencies be added to the `$ERL_LIBS` env 
> var ?
>     Should those compiled dependencies be placed symlinked under 
> `_build/$MIX_ENV/lib` ?
>
>     My understanding is that the compilation will have to happen with `mix 
> compile --no-deps-check`.
>
>    I couldn't find relevant documentation in mix, I would be interested in 
> any pointers.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/bcde772d-8a5c-4a6e-b0aa-fc97447706e6n%40googlegroups.com.

Reply via email to