build-rebar3: Append postPatch to original hook

The postPatch attribute is already in the function argument but is
unused elsewhere in the code, so setting postPatch with buildRebar3 is
going to end up in a no-op.

This now allows to use postPatch within buildRebar3 by simply appending
to the existing postPatch hook that removes the rebar and rebar3
escripts.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @ericbmerritt
This commit is contained in:
aszlig 2016-08-29 23:20:59 +02:00
parent 3996aa8953
commit 86d1953ed4
No known key found for this signature in database
GPG Key ID: 1DE8E48E57DB5436

View File

@ -49,7 +49,7 @@ let
postPatch = ''
rm -f rebar rebar3
'';
'' + postPatch;
configurePhase = if configurePhase == null
then ''