From acf4bfd585d2a566864dce2a051d2888bd472fa1 Mon Sep 17 00:00:00 2001 From: Eric Merritt Date: Sun, 10 Jan 2016 18:39:37 -0800 Subject: [PATCH] erlang support: overridable allow installPhase This commit allows the installPhase of buildRebar3 to be overridden by the user. --- pkgs/development/erlang-modules/build-rebar3.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/erlang-modules/build-rebar3.nix b/pkgs/development/erlang-modules/build-rebar3.nix index 16e663d14b9..6ad82b62158 100644 --- a/pkgs/development/erlang-modules/build-rebar3.nix +++ b/pkgs/development/erlang-modules/build-rebar3.nix @@ -7,6 +7,7 @@ , buildInputs ? [], erlangDeps ? [], pluginDeps ? [] , postPatch ? "" , compilePorts ? false +, installPhase ? null , meta ? {} , ... }@attrs: @@ -56,7 +57,8 @@ let runHook postBuild ''; - installPhase = '' + installPhase = if installPhase == null + then '' runHook preInstall mkdir -p "$out/lib/erlang/lib/${name}-${version}" for reldir in src ebin priv include; do @@ -66,7 +68,8 @@ let success=1 done runHook postInstall - ''; + '' + else installPhase; meta = { inherit (erlang.meta) platforms;