1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/top-level/beam-packages.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

104 lines
3.5 KiB
Nix
Raw Normal View History

{ lib
, beam
, callPackage
2022-11-25 04:33:52 +00:00
, wxGTK32
, buildPackages
, stdenv
, wxSupport ? true
, systemd
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
}:
let
self = beam;
2023-03-21 18:04:24 +00:00
in
{
beamLib = callPackage ../development/beam-modules/lib.nix { };
2023-03-21 18:04:24 +00:00
latestVersion = "erlang_25";
# Each
interpreters = {
2023-01-16 11:50:22 +00:00
erlang = self.interpreters.${self.latestVersion};
erlang_odbc = self.interpreters."${self.latestVersion}_odbc";
erlang_javac = self.interpreters."${self.latestVersion}_javac";
erlang_odbc_javac = self.interpreters."${self.latestVersion}_odbc_javac";
# Standard Erlang versions, using the generic builder.
2024-05-21 00:46:09 +01:00
erlang_27 = self.beamLib.callErlang ../development/interpreters/erlang/27.nix {
wxGTK = wxGTK32;
parallelBuild = true;
autoconf = buildPackages.autoconf269;
exdocSupport = true;
exdoc = self.packages.erlang_26.ex_doc;
inherit wxSupport systemdSupport;
};
erlang_26 = self.beamLib.callErlang ../development/interpreters/erlang/26.nix {
wxGTK = wxGTK32;
parallelBuild = true;
autoconf = buildPackages.autoconf269;
inherit wxSupport systemdSupport;
};
erlang_26_odbc = self.interpreters.erlang_26.override { odbcSupport = true; };
erlang_26_javac = self.interpreters.erlang_26.override { javacSupport = true; };
erlang_26_odbc_javac = self.interpreters.erlang_26.override {
javacSupport = true;
odbcSupport = true;
};
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 11:17:16 +01:00
parallelBuild = true;
autoconf = buildPackages.autoconf269;
inherit wxSupport systemdSupport;
};
2023-03-21 18:04:24 +00:00
erlang_25_odbc = self.interpreters.erlang_25.override { odbcSupport = true; };
erlang_25_javac = self.interpreters.erlang_25.override { javacSupport = true; };
erlang_25_odbc_javac = self.interpreters.erlang_25.override {
2022-05-20 11:17:16 +01:00
javacSupport = true;
odbcSupport = true;
};
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;
# Can be enabled since the bug has been fixed in https://github.com/erlang/otp/pull/2508
parallelBuild = true;
autoconf = buildPackages.autoconf269;
inherit wxSupport systemdSupport;
};
2023-03-21 18:04:24 +00:00
erlang_24_odbc = self.interpreters.erlang_24.override { odbcSupport = true; };
erlang_24_javac = self.interpreters.erlang_24.override { javacSupport = true; };
erlang_24_odbc_javac = self.interpreters.erlang_24.override {
javacSupport = true;
odbcSupport = true;
};
# 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`.
inherit (self.packages.erlang)
elixir 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 18:30:03 +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; };
# 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 = {
2023-01-16 11:50:22 +00:00
erlang = self.packages.${self.latestVersion};
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 18:30:03 +01:00
};
__attrsFailEvaluation = true;
}