From 86d1953ed4a5317e6d103aaa08bc622d7e5fb34a Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 29 Aug 2016 23:20:59 +0200 Subject: [PATCH] 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 Cc: @ericbmerritt --- pkgs/development/beam-modules/build-rebar3.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/build-rebar3.nix b/pkgs/development/beam-modules/build-rebar3.nix index ac40b76a78a..f783683cd4a 100644 --- a/pkgs/development/beam-modules/build-rebar3.nix +++ b/pkgs/development/beam-modules/build-rebar3.nix @@ -49,7 +49,7 @@ let postPatch = '' rm -f rebar rebar3 - ''; + '' + postPatch; configurePhase = if configurePhase == null then ''