flakes/templates/devshells/elixir/flake.nix

37 lines
682 B
Nix

{
description = "Development environment";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
inherit (nixpkgs.lib) optional;
pkgs = import nixpkgs { inherit system; };
elixir = pkgs.beam.packages.erlang.elixir;
elixir-ls = pkgs.beam.packages.erlang.elixir_ls;
in
{
devShell = pkgs.mkShell {
buildInputs = [
elixir
];
};
}
);
}