mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 05:57:28 +00:00
beamPackages.mixRelease: support named releases
This commit is contained in:
parent
d72845c2ca
commit
427bcae622
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user