diff --git a/pkgs/development/beam-modules/fetch-mix-deps.nix b/pkgs/development/beam-modules/fetch-mix-deps.nix index b7b3a40e25e1..eb716c57818d 100644 --- a/pkgs/development/beam-modules/fetch-mix-deps.nix +++ b/pkgs/development/beam-modules/fetch-mix-deps.nix @@ -53,17 +53,20 @@ stdenvNoCC.mkDerivation ( git ]; - MIX_ENV = mixEnv; - MIX_TARGET = mixTarget; - MIX_DEBUG = if debug then 1 else 0; - DEBUG = if debug then 1 else 0; # for rebar3 - # the api with `mix local.rebar rebar path` makes a copy of the binary - MIX_REBAR = "${rebar}/bin/rebar"; - MIX_REBAR3 = "${rebar3}/bin/rebar3"; - # there is a persistent download failure with absinthe 1.6.3 - # those defaults reduce the failure rate - HEX_HTTP_CONCURRENCY = 1; - HEX_HTTP_TIMEOUT = 120; + env = { + MIX_ENV = mixEnv; + MIX_TARGET = mixTarget; + MIX_DEBUG = if debug then 1 else 0; + DEBUG = if debug then 1 else 0; # for rebar3 + # the api with `mix local.rebar rebar path` makes a copy of the binary + MIX_REBAR = "${rebar}/bin/rebar"; + MIX_REBAR3 = "${rebar3}/bin/rebar3"; + # there is a persistent download failure with absinthe 1.6.3 + # those defaults reduce the failure rate + HEX_HTTP_CONCURRENCY = 1; + HEX_HTTP_TIMEOUT = 120; + } + // (attrs.env or { }); configurePhase = attrs.configurePhase or ''