2020-12-22 11:22:05 +00:00
|
|
|
{ callPackage, wxGTK30, openssl_1_0_2, buildPackages, wxSupport ? true }:
|
2017-06-03 21:20:20 +01:00
|
|
|
|
|
|
|
rec {
|
2021-01-20 10:06:01 +00:00
|
|
|
lib = callPackage ../development/beam-modules/lib.nix { };
|
2017-06-03 21:20:20 +01:00
|
|
|
|
2017-06-17 15:28:41 +01:00
|
|
|
# Each
|
2017-06-03 21:20:20 +01:00
|
|
|
interpreters = rec {
|
|
|
|
|
2021-01-20 10:06:32 +00:00
|
|
|
# R23 is the default version.
|
|
|
|
erlang = erlangR23; # The main switch to change default Erlang version.
|
|
|
|
erlang_odbc = erlangR23_odbc;
|
|
|
|
erlang_javac = erlangR23_javac;
|
|
|
|
erlang_odbc_javac = erlangR23_odbc_javac;
|
2017-06-03 21:20:20 +01:00
|
|
|
|
2020-06-10 19:02:50 +01:00
|
|
|
# Standard Erlang versions, using the generic builder.
|
|
|
|
|
|
|
|
# R23
|
|
|
|
erlangR23 = lib.callErlang ../development/interpreters/erlang/R23.nix {
|
2017-06-03 21:20:20 +01:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 19:02:50 +01:00
|
|
|
# Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
|
|
|
|
parallelBuild = true;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
erlangR23_odbc = erlangR23.override { odbcSupport = true; };
|
|
|
|
erlangR23_javac = erlangR23.override { javacSupport = true; };
|
|
|
|
erlangR23_odbc_javac = erlangR23.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
# R22
|
|
|
|
erlangR22 = lib.callErlang ../development/interpreters/erlang/R22.nix {
|
2017-06-03 21:20:20 +01:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 19:02:50 +01:00
|
|
|
# Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
|
|
|
|
parallelBuild = true;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
erlangR22_odbc = erlangR22.override { odbcSupport = true; };
|
|
|
|
erlangR22_javac = erlangR22.override { javacSupport = true; };
|
|
|
|
erlangR22_odbc_javac = erlangR22.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
# R21
|
|
|
|
erlangR21 = lib.callErlang ../development/interpreters/erlang/R21.nix {
|
|
|
|
wxGTK = wxGTK30;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2020-06-10 19:02:50 +01:00
|
|
|
};
|
|
|
|
erlangR21_odbc = erlangR21.override { odbcSupport = true; };
|
|
|
|
erlangR21_javac = erlangR21.override { javacSupport = true; };
|
|
|
|
erlangR21_odbc_javac = erlangR21.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2020-06-10 19:02:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# R20
|
2017-06-22 14:50:37 +01:00
|
|
|
erlangR20 = lib.callErlang ../development/interpreters/erlang/R20.nix {
|
|
|
|
wxGTK = wxGTK30;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2017-06-22 14:50:37 +01:00
|
|
|
};
|
|
|
|
erlangR20_odbc = erlangR20.override { odbcSupport = true; };
|
|
|
|
erlangR20_javac = erlangR20.override { javacSupport = true; };
|
|
|
|
erlangR20_odbc_javac = erlangR20.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2017-06-22 14:50:37 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
# R19
|
|
|
|
erlangR19 = lib.callErlang ../development/interpreters/erlang/R19.nix {
|
2018-06-21 15:14:20 +01:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 19:02:50 +01:00
|
|
|
openssl = openssl_1_0_2;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2018-06-21 15:14:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
erlangR19_odbc = erlangR19.override { odbcSupport = true; };
|
|
|
|
erlangR19_javac = erlangR19.override { javacSupport = true; };
|
|
|
|
erlangR19_odbc_javac = erlangR19.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2018-06-21 15:14:20 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
# R18
|
|
|
|
erlangR18 = lib.callErlang ../development/interpreters/erlang/R18.nix {
|
2019-06-18 09:56:32 +01:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 19:02:50 +01:00
|
|
|
openssl = openssl_1_0_2;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2019-06-18 09:56:32 +01:00
|
|
|
};
|
2020-06-10 19:02:50 +01:00
|
|
|
erlangR18_odbc = erlangR18.override { odbcSupport = true; };
|
|
|
|
erlangR18_javac = erlangR18.override { javacSupport = true; };
|
|
|
|
erlangR18_odbc_javac = erlangR18.override {
|
2021-01-20 10:06:01 +00:00
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
2019-06-18 09:56:32 +01:00
|
|
|
};
|
2017-06-03 21:20:20 +01:00
|
|
|
|
2017-12-08 13:19:49 +00:00
|
|
|
# Basho fork, using custom builder.
|
2021-01-20 10:06:01 +00:00
|
|
|
erlang_basho_R16B02 =
|
|
|
|
lib.callErlang ../development/interpreters/erlang/R16B02-basho.nix {
|
|
|
|
autoconf = buildPackages.autoconf269;
|
2020-12-22 11:22:05 +00:00
|
|
|
inherit wxSupport;
|
2021-01-20 10:06:01 +00:00
|
|
|
};
|
|
|
|
erlang_basho_R16B02_odbc =
|
|
|
|
erlang_basho_R16B02.override { odbcSupport = true; };
|
2017-06-03 21:20:20 +01:00
|
|
|
|
2017-06-18 18:24:18 +01:00
|
|
|
# Other Beam languages. These are built with `beam.interpreters.erlang`. To
|
|
|
|
# access for example elixir built with different version of Erlang, use
|
2020-10-06 18:36:43 +01:00
|
|
|
# `beam.packages.erlangR23.elixir`.
|
2021-01-20 10:06:01 +00:00
|
|
|
inherit (packages.erlang)
|
2021-04-19 11:22:29 +01:00
|
|
|
elixir elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7 elixir_ls;
|
2017-06-23 01:34:32 +01:00
|
|
|
|
2020-01-30 18:00:09 +00:00
|
|
|
inherit (packages.erlang) lfe lfe_1_2 lfe_1_3;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
|
|
|
|
2017-06-17 15:28:41 +01:00
|
|
|
# Helper function to generate package set with a specific Erlang version.
|
2021-01-20 10:06:01 +00:00
|
|
|
packagesWith = erlang:
|
|
|
|
callPackage ../development/beam-modules { inherit erlang; };
|
2017-06-17 15:28:41 +01:00
|
|
|
|
|
|
|
# Each field in this tuple represents all Beam packages in nixpkgs built with
|
|
|
|
# appropriate Erlang/OTP version.
|
2019-08-13 22:52:01 +01:00
|
|
|
packages = {
|
2017-06-17 15:28:41 +01:00
|
|
|
# Packages built with default Erlang version.
|
|
|
|
erlang = packagesWith interpreters.erlang;
|
2020-06-10 19:02:50 +01:00
|
|
|
|
|
|
|
erlangR23 = packagesWith interpreters.erlangR23;
|
2019-06-18 09:56:32 +01:00
|
|
|
erlangR22 = packagesWith interpreters.erlangR22;
|
2020-06-10 19:02:50 +01:00
|
|
|
erlangR21 = packagesWith interpreters.erlangR21;
|
|
|
|
erlangR20 = packagesWith interpreters.erlangR20;
|
|
|
|
erlangR19 = packagesWith interpreters.erlangR19;
|
|
|
|
erlangR18 = packagesWith interpreters.erlangR18;
|
2017-06-03 21:20:20 +01:00
|
|
|
};
|
|
|
|
}
|