2025-01-20 07:57:49 +01:00
|
|
|
{
|
2025-01-21 18:35:41 +01:00
|
|
|
description = "Development environment";
|
2025-01-20 07:57:49 +01:00
|
|
|
|
|
|
|
inputs = {
|
2025-01-21 18:35:41 +01:00
|
|
|
nixpkgs = {
|
|
|
|
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
};
|
|
|
|
flake-utils = {
|
|
|
|
url = "github:numtide/flake-utils";
|
|
|
|
};
|
2025-01-20 07:57:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
2025-01-21 18:35:41 +01:00
|
|
|
inherit (nixpkgs.lib) optional;
|
2025-01-20 07:57:49 +01:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
2025-01-21 18:35:41 +01:00
|
|
|
|
|
|
|
elixir = pkgs.beam.packages.erlang.elixir;
|
|
|
|
elixir-ls = pkgs.beam.packages.erlang.elixir_ls;
|
2025-01-20 07:57:49 +01:00
|
|
|
in
|
|
|
|
{
|
2025-01-21 18:35:41 +01:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
elixir
|
|
|
|
];
|
|
|
|
};
|
2025-01-20 07:57:49 +01:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|