2018-07-21 00:44:44 +00:00
|
|
|
{ callPackage, wxGTK30 }:
|
2017-06-03 20:20:20 +00:00
|
|
|
|
|
|
|
rec {
|
2017-06-18 17:24:18 +00:00
|
|
|
lib = callPackage ../development/beam-modules/lib.nix {};
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2017-06-17 14:28:41 +00:00
|
|
|
# Each
|
2017-06-03 20:20:20 +00:00
|
|
|
interpreters = rec {
|
|
|
|
|
2018-08-07 21:27:41 +00:00
|
|
|
# R20 is the default version.
|
|
|
|
erlang = erlangR20; # The main switch to change default Erlang version.
|
|
|
|
erlang_odbc = erlangR20_odbc;
|
|
|
|
erlang_javac = erlangR20_javac;
|
|
|
|
erlang_odbc_javac = erlangR20_odbc_javac;
|
|
|
|
erlang_nox = erlangR20_nox;
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2017-06-04 18:26:37 +00:00
|
|
|
# These are standard Erlang versions, using the generic builder.
|
|
|
|
erlangR18 = lib.callErlang ../development/interpreters/erlang/R18.nix {
|
2017-06-03 20:20:20 +00:00
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
2017-06-07 23:39:17 +00:00
|
|
|
erlangR18_odbc = erlangR18.override { odbcSupport = true; };
|
|
|
|
erlangR18_javac = erlangR18.override { javacSupport = true; };
|
|
|
|
erlangR18_odbc_javac = erlangR18.override {
|
2017-06-03 20:20:20 +00:00
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-09-20 14:56:06 +00:00
|
|
|
erlangR18_nox = erlangR18.override { wxSupport = false; };
|
2017-06-04 18:26:37 +00:00
|
|
|
erlangR19 = lib.callErlang ../development/interpreters/erlang/R19.nix {
|
2017-06-03 20:20:20 +00:00
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
2017-06-07 23:39:17 +00:00
|
|
|
erlangR19_odbc = erlangR19.override { odbcSupport = true; };
|
|
|
|
erlangR19_javac = erlangR19.override { javacSupport = true; };
|
|
|
|
erlangR19_odbc_javac = erlangR19.override {
|
2017-06-03 20:20:20 +00:00
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-09-20 14:56:06 +00:00
|
|
|
erlangR19_nox = erlangR19.override { wxSupport = false; };
|
2017-06-22 13:50:37 +00:00
|
|
|
erlangR20 = lib.callErlang ../development/interpreters/erlang/R20.nix {
|
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
|
|
|
erlangR20_odbc = erlangR20.override { odbcSupport = true; };
|
|
|
|
erlangR20_javac = erlangR20.override { javacSupport = true; };
|
|
|
|
erlangR20_odbc_javac = erlangR20.override {
|
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-09-20 14:56:06 +00:00
|
|
|
erlangR20_nox = erlangR20.override { wxSupport = false; };
|
2018-06-21 14:14:20 +00:00
|
|
|
erlangR21 = lib.callErlang ../development/interpreters/erlang/R21.nix {
|
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
|
|
|
erlangR21_odbc = erlangR21.override { odbcSupport = true; };
|
|
|
|
erlangR21_javac = erlangR21.override { javacSupport = true; };
|
|
|
|
erlangR21_odbc_javac = erlangR21.override {
|
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
|
|
|
erlangR21_nox = erlangR21.override { wxSupport = false; };
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2017-12-08 13:19:49 +00:00
|
|
|
# Basho fork, using custom builder.
|
|
|
|
erlang_basho_R16B02 = lib.callErlang ../development/interpreters/erlang/R16B02-basho.nix {
|
2017-06-04 18:26:37 +00:00
|
|
|
};
|
2017-06-07 21:21:14 +00:00
|
|
|
erlang_basho_R16B02_odbc = erlang_basho_R16B02.override {
|
2017-06-04 18:26:37 +00:00
|
|
|
odbcSupport = true;
|
|
|
|
};
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2017-06-18 17:24:18 +00:00
|
|
|
# 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`.
|
2019-01-05 11:34:35 +00:00
|
|
|
inherit (packages.erlang) elixir elixir_1_8 elixir_1_7 elixir_1_6 elixir_1_5 elixir_1_4;
|
2017-06-23 00:34:32 +00:00
|
|
|
|
2017-07-11 00:25:12 +00:00
|
|
|
inherit (packages.erlang) lfe lfe_1_2;
|
2017-06-03 20:20:20 +00:00
|
|
|
};
|
|
|
|
|
2017-06-17 14:28:41 +00:00
|
|
|
# Helper function to generate package set with a specific Erlang version.
|
|
|
|
packagesWith = erlang: callPackage ../development/beam-modules { inherit erlang; };
|
|
|
|
|
|
|
|
# Each field in this tuple represents all Beam packages in nixpkgs built with
|
|
|
|
# appropriate Erlang/OTP version.
|
2017-06-03 20:20:20 +00:00
|
|
|
packages = rec {
|
|
|
|
|
2017-06-17 14:28:41 +00:00
|
|
|
# Packages built with default Erlang version.
|
|
|
|
erlang = packagesWith interpreters.erlang;
|
|
|
|
erlangR18 = packagesWith interpreters.erlangR18;
|
|
|
|
erlangR19 = packagesWith interpreters.erlangR19;
|
2017-06-23 17:42:31 +00:00
|
|
|
erlangR20 = packagesWith interpreters.erlangR20;
|
2018-06-21 14:14:20 +00:00
|
|
|
erlangR21 = packagesWith interpreters.erlangR21;
|
2017-06-03 20:20:20 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|