elixir_1_13: init (#148619)

This commit is contained in:
Chris Wögi 2021-12-06 17:07:01 +01:00 committed by GitHub
parent ad4b1eb161
commit bc5d68306b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 27 deletions

View File

@ -42,7 +42,12 @@ let
elvis-erlang = callPackage ./elvis-erlang { };
# BEAM-based languages.
elixir = elixir_1_12;
elixir = elixir_1_13;
elixir_1_13 = lib'.callElixir ../interpreters/elixir/1.13.nix {
inherit erlang;
debugInfo = true;
};
elixir_1_12 = lib'.callElixir ../interpreters/elixir/1.12.nix {
inherit erlang;
@ -64,17 +69,8 @@ let
debugInfo = true;
};
elixir_1_8 = lib'.callElixir ../interpreters/elixir/1.8.nix {
erlang = pkgs.beam.interpreters.erlangR23;
debugInfo = true;
};
# Remove old versions of elixir, when the supports fades out:
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html
elixir_1_7 = lib'.callElixir ../interpreters/elixir/1.7.nix {
inherit erlang;
debugInfo = true;
};
elixir_ls = callPackage ./elixir-ls { inherit elixir fetchMixDeps mixRelease; };

View File

@ -0,0 +1,9 @@
{ mkDerivation }:
# How to obtain `sha256`:
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
mkDerivation {
version = "1.13.0";
sha256 = "1rkrx9kbs2nhkmzydm02r4wkb8wxwmg8iv0nqilpzj0skkxd6k8w";
minimumOTPVersion = "22";
}

View File

@ -1,7 +0,0 @@
{ mkDerivation }:
mkDerivation {
version = "1.7.4";
sha256 = "0f8j4pib13kffiihagdwl3xqs3a1ak19qz3z8fpyfxn9dnjiinla";
minimumOTPVersion = "19";
}

View File

@ -1,7 +0,0 @@
{ mkDerivation }:
mkDerivation {
version = "1.8.2";
sha256 = "1n77cpcl2b773gmj3m9s24akvj9gph9byqbmj2pvlsmby4aqwckq";
minimumOTPVersion = "20";
}

View File

@ -13304,7 +13304,7 @@ with pkgs;
inherit (beam.interpreters)
erlang erlangR24 erlangR23 erlangR22 erlangR21
erlang_odbc erlang_javac erlang_odbc_javac erlang_basho_R16B02
elixir elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7
elixir elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9
elixir_ls;
erlang_nox = beam_nox.interpreters.erlang;

View File

@ -89,9 +89,9 @@ with beam; {
# Other Beam languages. These are built with `beam.interpreters.erlang`. To
# access for example elixir built with different version of Erlang, use
# `beam.packages.erlangR23.elixir`.
# `beam.packages.erlangR24.elixir`.
inherit (packages.erlang)
elixir elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7 elixir_ls;
elixir elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_1_9 elixir_ls;
inherit (packages.erlang) lfe lfe_1_3;
};