git.iko.soy/typeable/nixpkgs
on master help sign in
erlang support: overridable allow installPhase

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

commitacf4bfd585d2a566864dce2a051d2888bd472fa1 authorEric Merritt <eric@merritt.tech> dateSun 10 Jan 2016, 18:39 (11 years ago) parent6a493a2
1 file changed+5−2
pkgs/development/erlang-modules/build-rebar3.nix+5−2
pkgs/development/erlang-modules/build-rebar3.nix+5−2
@@ -7,6 +7,7 @@
77, buildInputs ? [], erlangDeps ? [], pluginDeps ? []
88, postPatch ? ""
99, compilePorts ? false
10+, installPhase ? null
1011, meta ? {}
1112, ... }@attrs:
1213
@@ -56,7 +57,8 @@ let
5657 runHook postBuild
5758 '';
5859
59− installPhase = ''
60+ installPhase = if installPhase == null
61+ then ''
6062 runHook preInstall
6163 mkdir -p "$out/lib/erlang/lib/${name}-${version}"
6264 for reldir in src ebin priv include; do
@@ -66,7 +68,8 @@ let
6668 success=1
6769 done
6870 runHook postInstall
69− '';
71+ ''
72+ else installPhase;
7073
7174 meta = {
7275 inherit (erlang.meta) platforms;