1.0 KiB


Another NIF library for libsodium.


Easy cross-compiling the NIF.


On UNIX-like systems:

  • Shell (tested on bash and busybox ash)
  • Make
  • A GCC-like C99 compiler.
  • meson (optional but recommended)
  • pkgconf (if directly building)

SALTYWITCH_BUILD_SYSTEM: By default direct is used for UNIX systems. - meson (recommended): Use meson to build the NIF. - cmake: Use CMake to build the NIF - direct: Build the NIF in a single compiler invocation like a lunatic.

SALTYWITCH_MESON_ARGS: extra arguments for meson - do not specify --prefix


If available in Hex, the package can be installed by adding saltywitch to your list of dependencies in mix.exs:

def deps do
    {:saltywitch, "~> 0.0.1"}

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at