-
Notifications
You must be signed in to change notification settings - Fork 16
Description
I've been using this and mostly it's been working great, thanks for sharing it!
I've hit kind of an edge case with path dependencies and MIX_TARGET. I've observed that mixRelease builds all the dependencies with the default MIX_TARGET=host even when the main project is building with a different MIX_TARGET. For most of my deps that inconsistency doesn't appear to create an issue but for some reason when I build the main project with the modified MIX_TARGET, my path dependency fails when it tries to find one of it's dependencies (elixir_make in this case). I get roughly the same behavior with or without --include-paths and elixir_make is in the deps.nix, and was built and used by other dependencies successfully so I'm pretty sure I've narrowed it to something about the MIX_TARGET not matching.
Have you seen issues like this before with MIX_TARGET? Is there a convenient way to add an environment variable to every buildMix dep without individually overriding each package? If there was a way to do that, I have a similar use case for building for ARM under emulation on Nixos...
Right now the problem is in a repo I can't share, but if I need to I think I can probably reproduce it.