Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

+7
+2
pkgs/development/interpreters/elixir/default.nix
··· 17 17 LANG = "en_US.UTF-8"; 18 18 LC_TYPE = "en_US.UTF-8"; 19 19 20 + setupHook = ./setup-hook.sh; 21 + 20 22 buildFlags = if debugInfo 21 23 then "ERL_COMPILER_OPTIONS=debug_info" 22 24 else "";
+5
pkgs/development/interpreters/elixir/setup-hook.sh
··· 1 + addErlLibPath() { 2 + addToSearchPath ERL_LIBS $1/lib/elixir/lib 3 + } 4 + 5 + envHooks+=(addErlLibPath)