From 7fd57568945bb24f73ff752b44621a4401fd6b3d Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 12 Feb 2026 18:39:36 +0100 Subject: [PATCH] beamPackages.fetchMixDeps: move env variables into env for structuredAttrs --- .../beam-modules/fetch-mix-deps.nix | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) 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 ''