18 lines
474 B
Nix
18 lines
474 B
Nix
{pkgs,...}:
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.elixir
|
|
pkgs.elixir-ls
|
|
pkgs.erlang
|
|
];
|
|
shellHook = ''
|
|
export MIX_HOME=$PWD/.mix
|
|
export HEX_HOME=$PWD/.hex
|
|
echo 'Elixir version:'
|
|
elixir --version
|
|
echo 'Erlang version:'
|
|
erl -version
|
|
echo 'Welcome to Elixir shell!'
|
|
echo 'Run `iex` to start the interactive shell'
|
|
'';
|
|
} |