2021-09-11 12:50:52 +00:00
|
|
|
{ beam, callPackage, wxGTK30, buildPackages, stdenv
|
|
|
|
, wxSupport ? true
|
|
|
|
, systemdSupport ? stdenv.isLinux
|
|
|
|
}:
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2021-08-23 13:59:10 +00:00
|
|
|
with beam; {
|
2021-01-20 10:06:01 +00:00
|
|
|
lib = callPackage ../development/beam-modules/lib.nix { };
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2021-08-23 14:06:41 +00:00
|
|
|
# R24 is the default version.
|
|
|
|
# The main switch to change default Erlang version.
|
|
|
|
defaultVersion = "erlangR24";
|
|
|
|
|
2017-06-17 14:28:41 +00:00
|
|
|
# Each
|
2021-08-23 13:59:10 +00:00
|
|
|
interpreters = with beam.interpreters; {
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2021-08-23 14:06:41 +00:00
|
|
|
erlang = beam.interpreters.${defaultVersion};
|
|
|
|
erlang_odbc = beam.interpreters."${defaultVersion}_odbc";
|
|
|
|
erlang_javac = beam.interpreters."${defaultVersion}_javac";
|
|
|
|
erlang_odbc_javac = beam.interpreters."${defaultVersion}_odbc_javac";
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2020-06-10 18:02:50 +00:00
|
|
|
# Standard Erlang versions, using the generic builder.
|
|
|
|
|
2022-05-20 10:17:16 +00:00
|
|
|
# R25
|
|
|
|
erlangR25 = lib.callErlang ../development/interpreters/erlang/R25.nix {
|
|
|
|
wxGTK = wxGTK30;
|
|
|
|
parallelBuild = true;
|
|
|
|
autoconf = buildPackages.autoconf269;
|
|
|
|
inherit wxSupport systemdSupport;
|
|
|
|
};
|
|
|
|
erlangR25_odbc = erlangR25.override { odbcSupport = true; };
|
|
|
|
erlangR25_javac = erlangR25.override { javacSupport = true; };
|
|
|
|
erlangR25_odbc_javac = erlangR25.override {
|
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
|
|
|
};
|
|
|
|
|
2021-05-12 13:27:31 +00:00
|
|
|
# R24
|
|
|
|
erlangR24 = lib.callErlang ../development/interpreters/erlang/R24.nix {
|
|
|
|
wxGTK = wxGTK30;
|
|
|
|
# Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
|
|
|
|
parallelBuild = true;
|
|
|
|
autoconf = buildPackages.autoconf269;
|
2021-09-11 12:50:52 +00:00
|
|
|
inherit wxSupport systemdSupport;
|
2021-05-12 13:27:31 +00:00
|
|
|
};
|
|
|
|
erlangR24_odbc = erlangR24.override { odbcSupport = true; };
|
|
|
|
erlangR24_javac = erlangR24.override { javacSupport = true; };
|
|
|
|
erlangR24_odbc_javac = erlangR24.override {
|
|
|
|
javacSupport = true;
|
|
|
|
odbcSupport = true;
|
|
|
|
};
|
|
|
|
|
2020-06-10 18:02:50 +00:00
|
|
|
# R23
|
|
|
|
erlangR23 = lib.callErlang ../development/interpreters/erlang/R23.nix {
|
2017-06-03 20:20:20 +00:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 18:02:50 +00: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;
|
2021-09-11 12:50:52 +00:00
|
|
|
inherit wxSupport systemdSupport;
|
2017-06-03 20:20:20 +00:00
|
|
|
};
|
2020-06-10 18:02:50 +00: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 20:20:20 +00:00
|
|
|
};
|
2020-06-10 18:02:50 +00:00
|
|
|
|
|
|
|
# R22
|
|
|
|
erlangR22 = lib.callErlang ../development/interpreters/erlang/R22.nix {
|
2017-06-03 20:20:20 +00:00
|
|
|
wxGTK = wxGTK30;
|
2020-06-10 18:02:50 +00: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;
|
2021-09-11 12:50:52 +00:00
|
|
|
inherit wxSupport systemdSupport;
|
2017-06-03 20:20:20 +00:00
|
|
|
};
|
2020-06-10 18:02:50 +00: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 20:20:20 +00:00
|
|
|
};
|
2020-06-10 18:02:50 +00:00
|
|
|
|
|
|
|
# R21
|
|
|
|
erlangR21 = lib.callErlang ../development/interpreters/erlang/R21.nix {
|
|
|
|
wxGTK = wxGTK30;
|
2021-01-01 09:48:32 +00:00
|
|
|
autoconf = buildPackages.autoconf269;
|
2021-09-11 12:50:52 +00:00
|
|
|
inherit wxSupport systemdSupport;
|
2020-06-10 18:02:50 +00: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 18:02:50 +00:00
|
|
|
};
|
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
|
2021-12-06 16:07:01 +00:00
|
|
|
# `beam.packages.erlangR24.elixir`.
|
2021-01-20 10:06:01 +00:00
|
|
|
inherit (packages.erlang)
|
2022-09-01 21:54:49 +00:00
|
|
|
elixir elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_ls;
|
2017-06-23 00:34:32 +00:00
|
|
|
|
2021-05-17 08:09:51 +00:00
|
|
|
inherit (packages.erlang) lfe lfe_1_3;
|
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.
|
2021-01-20 10:06:01 +00:00
|
|
|
packagesWith = erlang:
|
|
|
|
callPackage ../development/beam-modules { inherit erlang; };
|
2017-06-17 14:28:41 +00:00
|
|
|
|
|
|
|
# Each field in this tuple represents all Beam packages in nixpkgs built with
|
|
|
|
# appropriate Erlang/OTP version.
|
2019-08-13 21:52:01 +00:00
|
|
|
packages = {
|
2017-06-17 14:28:41 +00:00
|
|
|
# Packages built with default Erlang version.
|
2021-08-23 14:06:41 +00:00
|
|
|
erlang = packages.${defaultVersion};
|
2020-06-10 18:02:50 +00:00
|
|
|
|
2022-05-20 10:17:16 +00:00
|
|
|
erlangR25 = packagesWith interpreters.erlangR25;
|
2021-05-15 18:14:03 +00:00
|
|
|
erlangR24 = packagesWith interpreters.erlangR24;
|
2020-06-10 18:02:50 +00:00
|
|
|
erlangR23 = packagesWith interpreters.erlangR23;
|
2019-06-18 08:56:32 +00:00
|
|
|
erlangR22 = packagesWith interpreters.erlangR22;
|
2020-06-10 18:02:50 +00:00
|
|
|
erlangR21 = packagesWith interpreters.erlangR21;
|
2017-06-03 20:20:20 +00:00
|
|
|
};
|
|
|
|
}
|