Now we have some elixir

This commit is contained in:
2026-06-05 00:59:45 +02:00
parent 2855f3d489
commit 969870b3c3
10 changed files with 202 additions and 35 deletions
+59
View File
@@ -0,0 +1,59 @@
# SPDX-License-Identifier: Unlicense
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
};
outputs =
{ nixpkgs, ... }@inputs:
let
inherit (nixpkgs) lib;
# Set the Erlang version
beamVersion = "beam28Packages";
# Set the Elixir version
elixirVersion = "elixir_1_20";
eachSystem =
f:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system:
f system (
import nixpkgs {
inherit system;
overlays = [
(
final: _:
let
beamPackages = final.${beamVersion};
erlang = beamPackages.erlang;
elixir = beamPackages.${elixirVersion};
in
{
inherit erlang elixir;
inherit (beamPackages) elixir-ls hex;
}
)
];
}
)
);
in
{
# packages = eachSystem (_system: pkgs:
# );
devShells = eachSystem (
_system: pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
erlang
elixir
elixir-ls
];
};
}
);
};
}