beamPackages.mixRelease: support named releases

This commit is contained in:
Mathew Polzin 2024-07-24 23:11:45 -05:00
parent d72845c2ca
commit 427bcae622

View File

@ -26,6 +26,9 @@
, enableDebugInfo ? false
, mixEnv ? "prod"
, compileFlags ? [ ]
# Build a particular named release.
# see https://hexdocs.pm/mix/1.12/Mix.Tasks.Release.html#content
, mixReleaseName ? ""
# Options to be passed to the Erlang compiler. As documented in the reference
# manual, these must be valid Erlang terms. They will be turned into an
@ -175,7 +178,7 @@ stdenv.mkDerivation (overridable // {
installPhase = attrs.installPhase or ''
runHook preInstall
mix release --no-deps-check --path "$out"
mix release ${mixReleaseName} --no-deps-check --path "$out"
runHook postInstall
'';