2017-06-03 22:20:20 +02:00
|
|
|
{ pkgs, stdenv, callPackage, wxGTK30, darwin }:
|
|
|
|
|
|
|
|
rec {
|
2017-06-18 19:24:18 +02:00
|
|
|
lib = callPackage ../development/beam-modules/lib.nix {};
|
2017-06-03 22:20:20 +02:00
|
|
|
|
2017-06-17 16:28:41 +02:00
|
|
|
# Each
|
2017-06-03 22:20:20 +02:00
|
|
|
interpreters = rec {
|
|
|
|
|
2017-06-17 16:28:41 +02:00
|
|
|
# R18 is the default version.
|
|
|
|
erlang = erlangR18; # The main switch to change default Erlang version.
|
2017-06-03 22:20:20 +02:00
|
|
|
erlang_odbc = erlangR18_odbc;
|
|
|
|
erlang_javac = erlangR18_javac;
|
|
|
|
erlang_odbc_javac = erlangR18_odbc_javac;
|
|
|
|
|
2017-06-04 20:26:37 +02:00
|
|
|
# These are standard Erlang versions, using the generic builder.
|
2017-06-08 01:39:17 +02:00
|
|
|
erlangR16 = lib.callErlang ../development/interpreters/erlang/R16.nix {};
|
|
|
|
erlangR16_odbc = erlangR16.override { odbcSupport = true; };
|
|
|
|
erlangR17 = lib.callErlang ../development/interpreters/erlang/R17.nix {};
|
|
|
|
erlangR17_odbc = erlangR17.override { odbcSupport = true; };
|
|
|
|
erlangR17_javac = erlangR17.override { javacSupport = true; };
|
|
|
|
erlangR17_odbc_javac = erlangR17.override {
|
2017-06-03 22:20:20 +02:00
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-06-04 20:26:37 +02:00
|
|
|
erlangR18 = lib.callErlang ../development/interpreters/erlang/R18.nix {
|
2017-06-03 22:20:20 +02:00
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
2017-06-08 01:39:17 +02:00
|
|
|
erlangR18_odbc = erlangR18.override { odbcSupport = true; };
|
|
|
|
erlangR18_javac = erlangR18.override { javacSupport = true; };
|
|
|
|
erlangR18_odbc_javac = erlangR18.override {
|
2017-06-03 22:20:20 +02:00
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-06-04 20:26:37 +02:00
|
|
|
erlangR19 = lib.callErlang ../development/interpreters/erlang/R19.nix {
|
2017-06-03 22:20:20 +02:00
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
2017-06-08 01:39:17 +02:00
|
|
|
erlangR19_odbc = erlangR19.override { odbcSupport = true; };
|
|
|
|
erlangR19_javac = erlangR19.override { javacSupport = true; };
|
|
|
|
erlangR19_odbc_javac = erlangR19.override {
|
2017-06-03 22:20:20 +02:00
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-06-22 15:50:37 +02:00
|
|
|
erlangR20 = lib.callErlang ../development/interpreters/erlang/R20.nix {
|
|
|
|
wxGTK = wxGTK30;
|
|
|
|
};
|
|
|
|
erlangR20_odbc = erlangR20.override { odbcSupport = true; };
|
|
|
|
erlangR20_javac = erlangR20.override { javacSupport = true; };
|
|
|
|
erlangR20_odbc_javac = erlangR20.override {
|
|
|
|
javacSupport = true; odbcSupport = true;
|
|
|
|
};
|
2017-06-03 22:20:20 +02:00
|
|
|
|
2017-06-04 20:26:37 +02:00
|
|
|
# Bash fork, using custom builder.
|
2017-06-07 23:21:14 +02:00
|
|
|
erlang_basho_R16B02 = lib.callErlang ../development/interpreters/erlang/R16B02-8-basho.nix {
|
2017-06-04 20:26:37 +02:00
|
|
|
};
|
2017-06-07 23:21:14 +02:00
|
|
|
erlang_basho_R16B02_odbc = erlang_basho_R16B02.override {
|
2017-06-04 20:26:37 +02:00
|
|
|
odbcSupport = true;
|
|
|
|
};
|
2017-06-03 22:20:20 +02:00
|
|
|
|
2017-06-18 19:24:18 +02:00
|
|
|
# Other Beam languages. These are built with `beam.interpreters.erlang`. To
|
|
|
|
# access for example elixir built with different version of Erlang, use
|
|
|
|
# `beam.packages.erlangR19.elixir`.
|
|
|
|
elixir = packages.erlang.elixir;
|
|
|
|
lfe = packages.erlang.lfe;
|
2017-06-03 22:20:20 +02:00
|
|
|
};
|
|
|
|
|
2017-06-17 16:28:41 +02:00
|
|
|
# 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.
|
2017-06-03 22:20:20 +02:00
|
|
|
packages = rec {
|
|
|
|
|
2017-06-17 16:28:41 +02:00
|
|
|
# Packages built with default Erlang version.
|
|
|
|
erlang = packagesWith interpreters.erlang;
|
|
|
|
erlangR16 = packagesWith interpreters.erlangR16;
|
|
|
|
erlangR17 = packagesWith interpreters.erlangR17;
|
|
|
|
erlangR18 = packagesWith interpreters.erlangR18;
|
|
|
|
erlangR19 = packagesWith interpreters.erlangR19;
|
2017-06-03 22:20:20 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|