Commit 2ea8b001 authored by superherointj's avatar superherointj Committed by Yt
Browse files

beam/fetch-mix-deps: replace mixEnv with MIX_ENV

Currently, when fetchMixDeps is executed without mixEnv argument.
"mixEnv" envvar is empty at installPhase, instead of having value "prod".
This happens because optional attrs values are not included in @attrs variable.
Thrus being necessary to replace mixEnv for MIX_ENV, which holds value "prod".

Reference: https://github.com/NixOS/nixpkgs/pull/216214#issuecomment-1434737238
parent ea07b21c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ stdenvNoCC.mkDerivation (attrs // {

  installPhase = attrs.installPhase or ''
    runHook preInstall
    mix deps.get ''${mixEnv:+--only $mixEnv}
    mix deps.get ''${MIX_ENV:+--only $MIX_ENV}
    find "$TEMPDIR/deps" -path '*/.git/*' -a ! -name HEAD -exec rm -rf {} +
    cp -r --no-preserve=mode,ownership,timestamps $TEMPDIR/deps $out
    runHook postInstall