diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2023-02-17 12:35:51 -0300 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2023-02-17 17:47:22 -0500 |
commit | 2ea8b001f6ba09cc6eb9a30f4e117cbc3ec5afe2 (patch) | |
tree | 06935f1fa22a75136fdd8226b0392fad583c3566 /pkgs/development/beam-modules | |
parent | ea07b21c07ed7beb4eeba9c7ac5f87f05a2bf26a (diff) |
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
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r-- | pkgs/development/beam-modules/fetch-mix-deps.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/beam-modules/fetch-mix-deps.nix b/pkgs/development/beam-modules/fetch-mix-deps.nix index 2bba3a93c2947..6d047dbe1ca59 100644 --- a/pkgs/development/beam-modules/fetch-mix-deps.nix +++ b/pkgs/development/beam-modules/fetch-mix-deps.nix @@ -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 |