Skip to content

Commit

Permalink
chore: add nix script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjhan committed Jan 5, 2025
1 parent b7cfbc8 commit 2f8b278
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ pkgs ? import <nixpkgs> {} }:

let
erlang = pkgs.beam.interpreters.erlang_25;
elixir = pkgs.beam.packages.erlang_25.elixir;
gleam = pkgs.gleam;
in
pkgs.mkShell {
buildInputs = [
erlang
elixir
gleam
];

shellHook = ''
echo "Erlang, Elixir, and Gleam development environment"
echo "================================================"
echo "Erlang version: $(erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell)"
echo "Elixir version: $(elixir --version)"
echo "Gleam version: $(gleam --version)"
echo ""
echo "To start Erlang shell, type: erl"
echo "To start Elixir shell, type: iex"
echo "To start a new Gleam project, type: gleam new project_name"
echo "================================================"
'';
}

0 comments on commit 2f8b278

Please sign in to comment.