erlang support: overridable allow installPhase

This commit allows the installPhase of buildRebar3 to be overridden by
the user.

+5 -2
+5 -2
pkgs/development/erlang-modules/build-rebar3.nix
··· 7 , buildInputs ? [], erlangDeps ? [], pluginDeps ? [] 8 , postPatch ? "" 9 , compilePorts ? false 10 , meta ? {} 11 , ... }@attrs: 12 ··· 56 runHook postBuild 57 ''; 58 59 - installPhase = '' 60 runHook preInstall 61 mkdir -p "$out/lib/erlang/lib/${name}-${version}" 62 for reldir in src ebin priv include; do ··· 66 success=1 67 done 68 runHook postInstall 69 - ''; 70 71 meta = { 72 inherit (erlang.meta) platforms;
··· 7 , buildInputs ? [], erlangDeps ? [], pluginDeps ? [] 8 , postPatch ? "" 9 , compilePorts ? false 10 + , installPhase ? null 11 , meta ? {} 12 , ... }@attrs: 13 ··· 57 runHook postBuild 58 ''; 59 60 + installPhase = if installPhase == null 61 + then '' 62 runHook preInstall 63 mkdir -p "$out/lib/erlang/lib/${name}-${version}" 64 for reldir in src ebin priv include; do ··· 68 success=1 69 done 70 runHook postInstall 71 + '' 72 + else installPhase; 73 74 meta = { 75 inherit (erlang.meta) platforms;