Simplify patch and move pc compile call into buildPhase
This commit is contained in:
parent
406b974420
commit
eac25eaf69
@ -22,11 +22,7 @@ stdenv.mkDerivation (attrs // {
|
|||||||
|
|
||||||
# TODO: figure out how to provide 'pc' plugin hermetically
|
# TODO: figure out how to provide 'pc' plugin hermetically
|
||||||
${if compilePorts then ''
|
${if compilePorts then ''
|
||||||
echo "{plugins, [pc]}.
|
echo "{plugins, [pc]}." >> rebar.config
|
||||||
{provider_hooks,
|
|
||||||
[{post,
|
|
||||||
[{compile, {pc, compile}},
|
|
||||||
{clean, {pc, clean}}]}]}." >> rebar.config
|
|
||||||
'' else ''''}
|
'' else ''''}
|
||||||
|
|
||||||
${postPatch}
|
${postPatch}
|
||||||
@ -58,8 +54,8 @@ stdenv.mkDerivation (attrs // {
|
|||||||
# this hermetic
|
# this hermetic
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
HOME=. rebar3 update
|
HOME=. rebar3 do update, compile
|
||||||
HOME=. rebar3 compile
|
HOME=. rebar3 pc compile
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user