blob: c727db80db6ae52f01a6d879241cb616a8f8f854 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
{ lib
, beam
, callPackage
, openssl_1_1
, wxGTK32
, buildPackages
, stdenv
, wxSupport ? true
, systemd
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
}:
let
self = beam;
in
{
beamLib = callPackage ../development/beam-modules/lib.nix { };
latestVersion = "erlangR25";
# Each
interpreters = {
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.
# R25
erlangR25 = self.beamLib.callErlang ../development/interpreters/erlang/R25.nix {
wxGTK = wxGTK32;
parallelBuild = true;
autoconf = buildPackages.autoconf269;
inherit wxSupport systemdSupport;
};
erlangR25_odbc = self.interpreters.erlangR25.override { odbcSupport = true; };
erlangR25_javac = self.interpreters.erlangR25.override { javacSupport = true; };
erlangR25_odbc_javac = self.interpreters.erlangR25.override {
javacSupport = true;
odbcSupport = true;
};
# R24
erlangR24 = self.beamLib.callErlang ../development/interpreters/erlang/R24.nix {
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;
};
erlangR24_odbc = self.interpreters.erlangR24.override { odbcSupport = true; };
erlangR24_javac = self.interpreters.erlangR24.override { javacSupport = true; };
erlangR24_odbc_javac = self.interpreters.erlangR24.override {
javacSupport = true;
odbcSupport = true;
};
# R23
erlangR23 = self.beamLib.callErlang ../development/interpreters/erlang/R23.nix {
openssl = openssl_1_1;
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;
};
erlangR23_odbc = self.interpreters.erlangR23.override { odbcSupport = true; };
erlangR23_javac = self.interpreters.erlangR23.override { javacSupport = true; };
erlangR23_odbc_javac = self.interpreters.erlangR23.override {
javacSupport = true;
odbcSupport = true;
};
# R22
erlangR22 = self.beamLib.callErlang ../development/interpreters/erlang/R22.nix {
openssl = openssl_1_1;
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;
};
erlangR22_odbc = self.interpreters.erlangR22.override { odbcSupport = true; };
erlangR22_javac = self.interpreters.erlangR22.override { javacSupport = true; };
erlangR22_odbc_javac = self.interpreters.erlangR22.override {
javacSupport = true;
odbcSupport = true;
};
# R21
erlangR21 = self.beamLib.callErlang ../development/interpreters/erlang/R21.nix {
openssl = openssl_1_1;
wxGTK = wxGTK32;
autoconf = buildPackages.autoconf269;
inherit wxSupport systemdSupport;
};
erlangR21_odbc = self.interpreters.erlangR21.override { odbcSupport = true; };
erlangR21_javac = self.interpreters.erlangR21.override { javacSupport = true; };
erlangR21_odbc_javac = self.interpreters.erlangR21.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
# `beam.packages.erlangR24.elixir`.
inherit (self.packages.erlang)
elixir elixir_1_14 elixir_1_13 elixir_1_12 elixir_1_11 elixir_1_10 elixir_ls;
inherit (self.packages.erlang) lfe lfe_1_3;
};
# Helper function to generate package set with a specific Erlang version.
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.
packages = {
erlang = self.packages.${self.latestVersion};
erlangR25 = self.packagesWith self.interpreters.erlangR25;
erlangR24 = self.packagesWith self.interpreters.erlangR24;
erlangR23 = self.packagesWith self.interpreters.erlangR23;
erlangR22 = self.packagesWith self.interpreters.erlangR22;
erlangR21 = self.packagesWith self.interpreters.erlangR21;
};
}
|