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
commit86d1953ed4a5317e6d103aaa08bc622d7e5fb34a
authoraszlig <aszlig@redmoonstudios.org>
dateMon 29 Aug 2016, 23:20 (10 years ago)
parent3996aa8
pkgs/development/beam-modules/build-rebar3.nix+1−1
@@ -49,7 +49,7 @@ let
4949
5050 postPatch = ''
5151 rm -f rebar rebar3
52− '';
52+ '' + postPatch;
5353
5454 configurePhase = if configurePhase == null
5555 then ''