diff --git a/flake.nix b/flake.nix index 97054f6..9e8410f 100644 --- a/flake.nix +++ b/flake.nix @@ -27,6 +27,12 @@ inherit pkgs craneLib; }; }; + templates = { + elixir-devshell = { + description = " A basic developer shell for elixir"; + path = ./templates/devshells/elixir; + }; + }; apps = { jellyfin-tui = { diff --git a/templates/default.nix b/templates/default.nix new file mode 100644 index 0000000..e69de29 diff --git a/templates/devshells/elixir/flake.nix b/templates/devshells/elixir/flake.nix new file mode 100644 index 0000000..5e3d6bf --- /dev/null +++ b/templates/devshells/elixir/flake.nix @@ -0,0 +1,28 @@ +{ + description = "Elixir devshel"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = + { + self, + nixpkgs, + flake-utils, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.default = + with pkgs; + mkShell { + packages = [ beam.packages.erlang_26.elixir_1_15 ]; + }; + } + ); +}