From 03c40872343b651bb52c9a9c37d608a5e4718c88 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 19 Dec 2024 16:56:38 -0500 Subject: [PATCH] elixir_1_18: init at 1.18.1 Co-authored-by: Filip Vavera (cherry picked from commit f308a423a3c81be77ed307108368dcbc2975adca) --- pkgs/development/beam-modules/default.nix | 5 +++++ pkgs/development/interpreters/elixir/1.18.nix | 8 ++++++++ pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/beam-packages.nix | 1 + 4 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/interpreters/elixir/1.18.nix diff --git a/pkgs/development/beam-modules/default.nix b/pkgs/development/beam-modules/default.nix index 23649ca76f261..26a0707fc1222 100644 --- a/pkgs/development/beam-modules/default.nix +++ b/pkgs/development/beam-modules/default.nix @@ -45,6 +45,11 @@ let # BEAM-based languages. elixir = elixir_1_17; + elixir_1_18 = lib'.callElixir ../interpreters/elixir/1.18.nix { + inherit erlang; + debugInfo = true; + }; + elixir_1_17 = lib'.callElixir ../interpreters/elixir/1.17.nix { inherit erlang; debugInfo = true; diff --git a/pkgs/development/interpreters/elixir/1.18.nix b/pkgs/development/interpreters/elixir/1.18.nix new file mode 100644 index 0000000000000..640181a6a2af6 --- /dev/null +++ b/pkgs/development/interpreters/elixir/1.18.nix @@ -0,0 +1,8 @@ +{ mkDerivation }: +mkDerivation { + version = "1.18.1"; + sha256 = "sha256-zJNAoyqSj/KdJ1Cqau90QCJihjwHA+HO7nnD1Ugd768="; + # https://hexdocs.pm/elixir/1.18.0/compatibility-and-deprecations.html#between-elixir-and-erlang-otp + minimumOTPVersion = "25"; + escriptPath = "lib/elixir/scripts/generate_app.escript"; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7aa28e08a1a15..f13add0a9b86d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7330,7 +7330,7 @@ with pkgs; inherit (beam.interpreters) erlang erlang_27 erlang_26 erlang_25 erlang_24 - elixir elixir_1_17 elixir_1_16 elixir_1_15 elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 + elixir elixir_1_18 elixir_1_17 elixir_1_16 elixir_1_15 elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir-ls; erlang_nox = beam_nox.interpreters.erlang; diff --git a/pkgs/top-level/beam-packages.nix b/pkgs/top-level/beam-packages.nix index 59aeda1931b31..425e45ef8bf00 100644 --- a/pkgs/top-level/beam-packages.nix +++ b/pkgs/top-level/beam-packages.nix @@ -64,6 +64,7 @@ in # `beam.packages.erlang_24.elixir`. inherit (self.packages.erlang) elixir + elixir_1_18 elixir_1_17 elixir_1_16 elixir_1_15