summary refs log tree commit diff
path: root/pkgs/top-level/beam-packages.nix
diff options
context:
space:
mode:
authorGleb Peregud <gleber.p@gmail.com>2017-06-18 19:24:18 +0200
committerGleb Peregud <gleber.p@gmail.com>2017-06-19 19:58:57 +0200
commit7797e1a1dda661476dbb312b1f26896d32831ef5 (patch)
tree7ab150bfd684e3dce569ef571c5fe8649eea5f12 /pkgs/top-level/beam-packages.nix
parentf66b0186dc9764b83ad76f9dcaec341b0f6f83a0 (diff)
downloadnixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar.gz
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar.bz2
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar.lz
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar.xz
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.tar.zst
nixpkgs-7797e1a1dda661476dbb312b1f26896d32831ef5.zip
erlang: put Elixir/LFE into per-OTP packageset.
This makes beam.package.erlangR19.abnf to be actually built with R19,
instead of the default R18. It means that Elixir and LFE are provided in
two versions, one built with R18 and with R19.

Please note that Elixir does not build with R16 and R17 - trying to
access beam.packages.erlang{R16,R17}.elixir will throw an error.
Diffstat (limited to 'pkgs/top-level/beam-packages.nix')
-rw-r--r--pkgs/top-level/beam-packages.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/top-level/beam-packages.nix b/pkgs/top-level/beam-packages.nix
index ccf22d6c534..9e0234ac1e2 100644
--- a/pkgs/top-level/beam-packages.nix
+++ b/pkgs/top-level/beam-packages.nix
@@ -1,7 +1,7 @@
 { pkgs, stdenv, callPackage, wxGTK30, darwin }:
 
 rec {
-  lib = import ../development/beam-modules/lib.nix { inherit pkgs; };
+  lib = callPackage ../development/beam-modules/lib.nix {};
 
   # Each
   interpreters = rec {
@@ -45,9 +45,11 @@ rec {
       odbcSupport = true;
     };
 
-    # Other Beam languages. These are built with beam.interpreters.erlang.
-    elixir = callPackage ../development/interpreters/elixir { debugInfo = true; };
-    lfe = callPackage ../development/interpreters/lfe { };
+    # 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;
   };
 
   # Helper function to generate package set with a specific Erlang version.