11 , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
20 beamLib = callPackage ../development/beam-modules/lib.nix { };
22 latestVersion = "erlang_25";
27 erlang = self.interpreters.${self.latestVersion};
29 # Standard Erlang versions, using the generic builder.
31 erlang_27 = self.beamLib.callErlang ../development/interpreters/erlang/27.nix {
34 autoconf = buildPackages.autoconf269;
35 inherit (beam_nodocs.packages.erlang_27) ex_doc;
36 inherit ex_docSupport wxSupport systemdSupport;
39 erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {
42 autoconf = buildPackages.autoconf269;
43 inherit wxSupport systemdSupport;
46 erlang_25 = self.beamLib.callErlang ../development/interpreters/erlang/25.nix {
49 autoconf = buildPackages.autoconf269;
50 inherit wxSupport systemdSupport;
53 erlang_24 = self.beamLib.callErlang ../development/interpreters/erlang/24.nix {
55 # Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
57 autoconf = buildPackages.autoconf269;
58 inherit wxSupport systemdSupport;
61 # Other Beam languages. These are built with `beam.interpreters.erlang`. To
62 # access for example elixir built with different version of Erlang, use
63 # `beam.packages.erlang_24.elixir`.
64 inherit (self.packages.erlang)
65 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;
68 # Helper function to generate package set with a specific Erlang version.
69 packagesWith = erlang:
70 callPackage ../development/beam-modules { inherit erlang; };
72 # Each field in this tuple represents all Beam packages in nixpkgs built with
73 # appropriate Erlang/OTP version.
75 erlang = self.packages.${self.latestVersion};
76 erlang_27 = self.packagesWith self.interpreters.erlang_27;
77 erlang_26 = self.packagesWith self.interpreters.erlang_26;
78 erlang_25 = self.packagesWith self.interpreters.erlang_25;
79 erlang_24 = self.packagesWith self.interpreters.erlang_24;
82 __attrsFailEvaluation = true;