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