Elixir

Framework
Elixir
Category
Languages
Publisher
Jetify
{
  "packages": {
    "elixir": "latest"
  },
  "env": {
    "MIX_HOME":   "$PWD/.nix-mix",
    "HEX_HOME":   "$PWD/.nix-hex",
    "ERL_AFLAGS": "-kernel shell_history enabled"
  },
  "shell": {
    "init_hook": [
      "mkdir -p .nix-mix",
      "mkdir -p .nix-hex",
      "mix local.hex --force",
      "mix local.rebar --force",
      "mix deps.get"
    ],
    "scripts": {
      "run_test": "mix run"
    }
  }
}

Elixir

Basic Elixir project using Mix in Devbox.

Configuration

This project configures Hex and Mix to install packages + dependencies in local project directories. You can modify where these packages are installed by changing the variables in conf/set-env.sh

Installation

To run the project: mix run

To create a release: mix release

Elixir Readme

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

def deps do
  [
    {:elixir_hello, "~> 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/elixir_hello.

README.md

Level up your dev environment

Checkout the Devbox and Launchpad open-source codebases on Github. Feature requests are always welcome.
Try Devbox Cloud
YOUR INPUT COUNTS

Join the community

Discuss ideas, uses and builds with the Jetpack team and others.