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:
parent
8d3d0a1ca9
commit
2d6d9682bb
@ -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 "";
|
||||
|
5
pkgs/development/interpreters/elixir/setup-hook.sh
Normal file
5
pkgs/development/interpreters/elixir/setup-hook.sh
Normal file
@ -0,0 +1,5 @@
|
||||
addErlLibPath() {
|
||||
addToSearchPath ERL_LIBS $1/lib/elixir/lib
|
||||
}
|
||||
|
||||
envHooks+=(addErlLibPath)
|
Loading…
Reference in New Issue
Block a user