Packaging Erlang libs and apps for a GNU/Linux distribution
Sat Jul 11 23:00:29 CEST 2020
I'm sorry to say but I can guarantee you are going to have a bad time.
Your questions mainly boil down to using rebar3 with pre-built global OTP Applications (packages). This isn't really possible. Rebar3 is meant as a development tool and not to be used as part of distributing software.
You might find installing packages to the $OTP_ROOT/lib directory or setting $ERL_LIBS while dropping deps from the rebar.config starts moving you forward (similar to how using _checkouts moved you forward) but you'll soon hit problems I'm sure. One off the top of my head would be plugins not working, so any package that depends on a plugin to compile would fail.
I don't know much about guix, but if it isn't a source based distro like gentoo and thus ejabberd doesn't have to be built at the time of install then I would suggest looking at packaging ejabberd as an OTP Release and not attempt to add individual OTP Applications (hex packages) as guix packages.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions