Add erlang that is in scope

This commit is contained in:
Justin Wood 2017-06-22 21:17:25 -04:00
parent 019afb0c80
commit 838956b179

View file

@ -40,11 +40,19 @@ let
elixir = defaultScope.elixir-1_4;
elixir-1_4 = if versionAtLeast (lib.getVersion erlang) "18"
then lib.callElixir ../interpreters/elixir/1.4.nix { debugInfo = true; }
then
lib.callElixir ../interpreters/elixir/1.4.nix {
debugInfo = true;
erlang = erlang;
}
else throw "Elixir requires at least Erlang/OTP R18.";
elixir-1_3 = if versionAtLeast (lib.getVersion erlang) "18"
then lib.callElixir ../interpreters/elixir/1.3.nix { debugInfo = true; }
then
lib.callElixir ../interpreters/elixir/1.3.nix {
debugInfo = true;
erlang = erlang;
}
else throw "Elixir requires at least Erlang/OTP R18.";
lfe = callPackage ../interpreters/lfe { };