nixpkgs-suyu/pkgs/top-level/beam-packages.nix

83 lines
3.2 KiB
Nix
Raw Normal View History

{ pkgs, stdenv, callPackage, wxGTK30, darwin }:
rec {
lib = callPackage ../development/beam-modules/lib.nix {};
# Each
interpreters = rec {
2017-09-20 16:56:06 +02:00
# R19 is the default version.
2017-06-23 20:01:36 +02:00
erlang = erlangR19; # The main switch to change default Erlang version.
erlang_odbc = erlangR19_odbc;
erlang_javac = erlangR19_javac;
erlang_odbc_javac = erlangR19_odbc_javac;
2017-09-20 16:56:06 +02:00
erlang_nox = erlangR19_nox;
# These are standard Erlang versions, using the generic builder.
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 {
javacSupport = true; odbcSupport = true;
};
2017-09-20 16:56:06 +02:00
erlangR17_nox = erlangR17.override { wxSupport = false; };
erlangR18 = lib.callErlang ../development/interpreters/erlang/R18.nix {
wxGTK = wxGTK30;
};
erlangR18_odbc = erlangR18.override { odbcSupport = true; };
erlangR18_javac = erlangR18.override { javacSupport = true; };
erlangR18_odbc_javac = erlangR18.override {
javacSupport = true; odbcSupport = true;
};
2017-09-20 16:56:06 +02:00
erlangR18_nox = erlangR18.override { wxSupport = false; };
erlangR19 = lib.callErlang ../development/interpreters/erlang/R19.nix {
wxGTK = wxGTK30;
};
erlangR19_odbc = erlangR19.override { odbcSupport = true; };
erlangR19_javac = erlangR19.override { javacSupport = true; };
erlangR19_odbc_javac = erlangR19.override {
javacSupport = true; odbcSupport = true;
};
2017-09-20 16:56:06 +02:00
erlangR19_nox = erlangR19.override { wxSupport = false; };
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-09-20 16:56:06 +02:00
erlangR20_nox = erlangR20.override { wxSupport = false; };
# Bash fork, using custom builder.
erlang_basho_R16B02 = lib.callErlang ../development/interpreters/erlang/R16B02-8-basho.nix {
};
erlang_basho_R16B02_odbc = erlang_basho_R16B02.override {
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.erlangR19.elixir`.
2017-07-25 15:42:50 +02:00
inherit (packages.erlang) elixir elixir_1_5 elixir_1_4 elixir_1_3;
2017-07-11 02:25:12 +02:00
inherit (packages.erlang) lfe lfe_1_2;
};
# 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 = rec {
# Packages built with default Erlang version.
erlang = packagesWith interpreters.erlang;
erlangR17 = packagesWith interpreters.erlangR17;
erlangR18 = packagesWith interpreters.erlangR18;
erlangR19 = packagesWith interpreters.erlangR19;
2017-06-23 19:42:31 +02:00
erlangR20 = packagesWith interpreters.erlangR20;
};
}