elixir: set ERL_LIBS for elixir apps

Previously Elixir didn't correct set the ERL_LIBS environment
variable for the OTP Applications that it supplies. This
change fixes that
This commit is contained in:
Eric Merritt 2016-04-01 13:13:02 -07:00
parent 8d3d0a1ca9
commit 2d6d9682bb
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
LANG = "en_US.UTF-8";
LC_TYPE = "en_US.UTF-8";
setupHook = ./setup-hook.sh;
buildFlags = if debugInfo
then "ERL_COMPILER_OPTIONS=debug_info"
else "";

View File

@ -0,0 +1,5 @@
addErlLibPath() {
addToSearchPath ERL_LIBS $1/lib/elixir/lib
}
envHooks+=(addErlLibPath)