elixir devshell: better flake

This commit is contained in:
Barna Máté 2025-01-21 18:35:41 +01:00
parent fe1a62d205
commit 173ee08316

View file

@ -1,9 +1,13 @@
{ {
description = "Elixir devshel"; description = "Development environment";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs"; nixpkgs = {
flake-utils.url = "github:numtide/flake-utils"; url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
}; };
outputs = outputs =
@ -15,13 +19,17 @@
flake-utils.lib.eachDefaultSystem ( flake-utils.lib.eachDefaultSystem (
system: system:
let let
inherit (nixpkgs.lib) optional;
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
elixir = pkgs.beam.packages.erlang.elixir;
elixir-ls = pkgs.beam.packages.erlang.elixir_ls;
in in
{ {
devShells.default = devShell = pkgs.mkShell {
with pkgs; buildInputs = [
mkShell { elixir
packages = [ beam.packages.erlang_26.elixir_1_15 ]; ];
}; };
} }
); );