add elixir template

This commit is contained in:
jsz4n
2023-11-07 19:01:06 +01:00
parent 0386a8998f
commit 9a911ab42e
2 changed files with 40 additions and 0 deletions

18
elixir/shell.nix Normal file
View File

@@ -0,0 +1,18 @@
{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'
'';
}