From fe1a62d205b386a3ac52418208b79221cd6bf672 Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Mon, 20 Jan 2025 07:57:49 +0100 Subject: [PATCH] flake: added template for elixir --- flake.nix | 6 ++++++ templates/default.nix | 0 templates/devshells/elixir/flake.nix | 28 ++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 templates/default.nix create mode 100644 templates/devshells/elixir/flake.nix 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 ]; + }; + } + ); +}