Installs and configures NBPR in a Nerves project so it can consume
binary packages from the nbpr Hex organisation.
mix igniter.install nbprWhat this does
- Adds
:nbprto the project's deps (handled bymix igniter.install). - Merges
firmware: ["nbpr.fetch", "firmware"]intoaliases:inmix.exssomix firmwarerunsmix nbpr.fetchfirst to populate prebuilt binaries from GHCR. - Authenticates the local Hex client to the
nbprorganisation using the publicly-shared read key, so subsequentmix deps.getcalls can fetch:nbpr_*packages.
After running, add the binary packages you want to your deps/0:
{:nbpr_jq, "~> 1.0", organization: "nbpr"},
{:nbpr_dnsmasq, "~> 2.0", organization: "nbpr"}Daemon-bearing packages (e.g. :nbpr_dnsmasq) generate a supervised
module — add it to your supervision tree:
children = [
{NBPR.Dnsmasq.Dnsmasq, config_file: "/etc/dnsmasq.conf"}
]