flake: added template for elixir
This commit is contained in:
parent
a7c0817ab7
commit
fe1a62d205
|
@ -27,6 +27,12 @@
|
|||
inherit pkgs craneLib;
|
||||
};
|
||||
};
|
||||
templates = {
|
||||
elixir-devshell = {
|
||||
description = " A basic developer shell for elixir";
|
||||
path = ./templates/devshells/elixir;
|
||||
};
|
||||
};
|
||||
|
||||
apps = {
|
||||
jellyfin-tui = {
|
||||
|
|
0
templates/default.nix
Normal file
0
templates/default.nix
Normal file
28
templates/devshells/elixir/flake.nix
Normal file
28
templates/devshells/elixir/flake.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue