CrissCross allows for simple cross compilation using hex precompiled beam packages.
OTHER License
CrissCross allows for simple cross compilation using hex precompiled beam packages.
This does work only for projects, which don't have any further native dependencies besides the Erlang Runtime System (ERTS).
In your mix.exs
add the following:
def project do
[
…,
releases: releases()
]
end
def releases do
[
ubuntu_14: [
include_erts: fn -> CrissCross.ubuntu(14, "OTP-23.1.2") end
],
ubuntu_16: [
include_erts: fn -> CrissCross.ubuntu(16, "OTP-23.1.2") end
]
]
end
:comeonin
: use :pbkdf2_elixir
instead of the other implementations, asIf available in Hex, the package can be installed
by adding criss_cross
to your list of dependencies in mix.exs
:
def deps do
[
{:criss_cross, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/criss_cross.