summary refs log tree commit diff
path: root/pkgs/development/beam-modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-08-29 23:20:59 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-08-29 23:31:50 +0200
commit86d1953ed4a5317e6d103aaa08bc622d7e5fb34a (patch)
tree6dc83576dec23d8651f4095b996e884c585b9b22 /pkgs/development/beam-modules
parent3996aa89534b7960034fb19eeb15bc62bfe3a289 (diff)
downloadnixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar.gz
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar.bz2
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar.lz
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar.xz
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.tar.zst
nixpkgs-86d1953ed4a5317e6d103aaa08bc622d7e5fb34a.zip
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
Diffstat (limited to 'pkgs/development/beam-modules')
-rw-r--r--pkgs/development/beam-modules/build-rebar3.nix2
1 files changed, 1 insertions, 1 deletions
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 ''