rebar.config.script 315 B

1234567891011
  1. Bcrypt = {bcrypt, {git, "https://github.com/emqx/erlang-bcrypt.git", {branch, "0.6.0"}}},
  2. AddBcrypt = fun(C) ->
  3. {deps, Deps0} = lists:keyfind(deps, 1, C),
  4. Deps = [Bcrypt | Deps0],
  5. lists:keystore(deps, 1, C, {deps, Deps})
  6. end,
  7. case os:type() of
  8. {win32, _} -> CONFIG;
  9. _ -> AddBcrypt(CONFIG)
  10. end.