Inherit the elixir versions for beam modules

Rename attributes from elixir-1_x to elixir_1_x
This commit is contained in:
Justin Wood 2017-06-26 16:58:44 -04:00
parent 909da3998e
commit 803797c6d6
2 changed files with 5 additions and 8 deletions

View File

@ -37,19 +37,19 @@ let
buildMix = callPackage ./build-mix.nix {};
# BEAM-based languages.
elixir = elixir-1_4;
elixir = elixir_1_4;
elixir-1_5 = lib.callElixir ../interpreters/elixir/1.5.nix "18" {
elixir_1_5_rc = lib.callElixir ../interpreters/elixir/1.5.nix "18" {
inherit rebar erlang;
debugInfo = true;
};
elixir-1_4 = lib.callElixir ../interpreters/elixir/1.4.nix "18" {
elixir_1_4 = lib.callElixir ../interpreters/elixir/1.4.nix "18" {
inherit rebar erlang;
debugInfo = true;
};
elixir-1_3 = lib.callElixir ../interpreters/elixir/1.3.nix "18" {
elixir_1_3 = lib.callElixir ../interpreters/elixir/1.3.nix "18" {
inherit rebar erlang;
debugInfo = true;
};

View File

@ -56,10 +56,7 @@ rec {
# Other Beam languages. These are built with `beam.interpreters.erlang`. To
# access for example elixir built with different version of Erlang, use
# `beam.packages.erlangR19.elixir`.
elixir = packages.erlang.elixir;
elixir-1_5 = packages.erlang.elixir-1_5;
elixir-1_4 = packages.erlang.elixir-1_4;
elixir-1_3 = packages.erlang.elixir-1_3;
inherit (packages.erlang) elixir elixir_1_5_rc elixir_1_4 elixir_1_3;
lfe = packages.erlang.lfe;
};