2022-09-21 07:04:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beam,
|
2024-09-06 13:57:17 +00:00
|
|
|
beam_nodocs,
|
2022-09-09 22:26:34 +00:00
|
|
|
callPackage,
|
2022-11-25 04:33:52 +00:00
|
|
|
wxGTK32,
|
2022-09-09 22:26:34 +00:00
|
|
|
buildPackages,
|
|
|
|
stdenv,
|
2024-09-06 13:57:17 +00:00
|
|
|
ex_docSupport ? true,
|
2021-09-11 12:50:52 +00:00
|
|
|
wxSupport ? true,
|
2022-09-21 07:04:52 +00:00
|
|
|
systemd,
|
|
|
|
systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
2021-09-11 12:50:52 +00:00
|
|
|
}:
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2022-09-09 22:26:34 +00:00
|
|
|
let
|
|
|
|
self = beam;
|
2023-03-21 18:04:24 +00:00
|
|
|
|
2022-09-09 22:26:34 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
beamLib = callPackage ../development/beam-modules/lib.nix { };
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2023-03-21 18:04:24 +00:00
|
|
|
latestVersion = "erlang_25";
|
2021-08-23 14:06:41 +00:00
|
|
|
|
2017-06-17 14:28:41 +00:00
|
|
|
# Each
|
2022-09-09 22:26:34 +00:00
|
|
|
interpreters = {
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2023-01-16 11:50:22 +00:00
|
|
|
erlang = self.interpreters.${self.latestVersion};
|
2017-06-03 20:20:20 +00:00
|
|
|
|
2020-06-10 18:02:50 +00:00
|
|
|
# Standard Erlang versions, using the generic builder.
|
|
|
|
|
2024-05-20 23:46:09 +00:00
|
|
|
erlang_27 = self.beamLib.callErlang ../development/interpreters/erlang/27.nix {
|
|
|
|
wxGTK = wxGTK32;
|
|
|
|
parallelBuild = true;
|
|
|
|
autoconf = buildPackages.autoconf269;
|
2024-09-06 13:57:17 +00:00
|
|
|
inherit (beam_nodocs.packages.erlang_27) ex_doc;
|
|
|
|
inherit ex_docSupport wxSupport systemdSupport;
|
2024-05-20 23:46:09 +00:00
|
|
|
};
|
|
|
|
|
2023-05-16 16:11:39 +00:00
|
|
|
erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {
|
|
|
|
wxGTK = wxGTK32;
|
|
|
|
parallelBuild = true;
|
|
|
|
autoconf = buildPackages.autoconf269;
|
|
|
|
inherit wxSupport systemdSupport;
|
|
|
|
};
|
|
|
|
|
2023-03-21 18:04:24 +00:00
|
|
|
erlang_25 = self.beamLib.callErlang ../development/interpreters/erlang/25.nix {
|
2022-11-25 04:33:52 +00:00
|
|
|
wxGTK = wxGTK32;
|
2022-05-20 10:17:16 +00:00
|
|
|
parallelBuild = true;
|
|
|
|
autoconf = buildPackages.autoconf269;
|
|
|
|
inherit wxSupport systemdSupport;
|
|
|
|
};
|
|
|
|
|
2023-03-21 18:04:24 +00:00
|
|
|
erlang_24 = self.beamLib.callErlang ../development/interpreters/erlang/24.nix {
|
2022-11-25 04:33:52 +00:00
|
|
|
wxGTK = wxGTK32;
|
2021-05-12 13:27:31 +00:00
|
|
|
# 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
|
|
|
};
|
|
|
|
|
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
|
2023-03-21 18:04:24 +00:00
|
|
|
# `beam.packages.erlang_24.elixir`.
|
2022-09-09 22:26:34 +00:00
|
|
|
inherit (self.packages.erlang)
|
2024-06-12 12:42:30 +00:00
|
|
|
elixir
|
|
|
|
elixir_1_17
|
|
|
|
elixir_1_16
|
|
|
|
elixir_1_15
|
|
|
|
elixir_1_14
|
|
|
|
elixir_1_13
|
|
|
|
elixir_1_12
|
|
|
|
elixir_1_11
|
|
|
|
elixir_1_10
|
|
|
|
elixir-ls
|
|
|
|
lfe
|
|
|
|
lfe_2_1
|
|
|
|
;
|
2024-05-24 17:30:03 +00:00
|
|
|
};
|
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 = {
|
2023-01-16 11:50:22 +00:00
|
|
|
erlang = self.packages.${self.latestVersion};
|
2024-06-04 22:32:57 +00:00
|
|
|
erlang_27 = self.packagesWith self.interpreters.erlang_27;
|
2023-05-16 16:11:39 +00:00
|
|
|
erlang_26 = self.packagesWith self.interpreters.erlang_26;
|
2023-03-21 18:04:24 +00:00
|
|
|
erlang_25 = self.packagesWith self.interpreters.erlang_25;
|
|
|
|
erlang_24 = self.packagesWith self.interpreters.erlang_24;
|
2024-05-24 17:30:03 +00:00
|
|
|
};
|
2023-11-23 00:46:36 +00:00
|
|
|
|
|
|
|
__attrsFailEvaluation = true;
|
2017-06-03 20:20:20 +00:00
|
|
|
}
|