summaryrefslogtreecommitdiff
path: root/src/rebar_hooks.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_hooks.erl')
-rw-r--r--src/rebar_hooks.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl
index 2599d8e..3e6d533 100644
--- a/src/rebar_hooks.erl
+++ b/src/rebar_hooks.erl
@@ -4,10 +4,11 @@
run_compile_hooks(Dir, Type, Command, State) ->
Hooks = rebar_state:get(State, Type, []),
+ Env = [{"REBAR_DEPS_DIR", rebar_prv_install_deps:get_deps_dir(State)}],
lists:foreach(fun({_, C, _}=Hook) when C =:= Command ->
- apply_hook(Dir, [], Hook);
+ apply_hook(Dir, Env, Hook);
({C, _}=Hook) when C =:= Command ->
- apply_hook(Dir, [], Hook);
+ apply_hook(Dir, Env, Hook);
(_) ->
continue
end, Hooks).