From eac25eaf69b8df9da28b1f94cb009320671ce32a Mon Sep 17 00:00:00 2001 From: Gleb Peregud Date: Thu, 10 Dec 2015 22:50:19 +0100 Subject: [PATCH] Simplify patch and move pc compile call into buildPhase --- pkgs/development/erlang-modules/build-hex.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/development/erlang-modules/build-hex.nix b/pkgs/development/erlang-modules/build-hex.nix index d5c71f882ff..f6b873f433a 100644 --- a/pkgs/development/erlang-modules/build-hex.nix +++ b/pkgs/development/erlang-modules/build-hex.nix @@ -22,11 +22,7 @@ stdenv.mkDerivation (attrs // { # TODO: figure out how to provide 'pc' plugin hermetically ${if compilePorts then '' - echo "{plugins, [pc]}. - {provider_hooks, - [{post, - [{compile, {pc, compile}}, - {clean, {pc, clean}}]}]}." >> rebar.config + echo "{plugins, [pc]}." >> rebar.config '' else ''''} ${postPatch} @@ -58,8 +54,8 @@ stdenv.mkDerivation (attrs // { # this hermetic buildPhase = '' runHook preBuild - HOME=. rebar3 update - HOME=. rebar3 compile + HOME=. rebar3 do update, compile + HOME=. rebar3 pc compile runHook postBuild '';