summary refs log tree commit diff
path: root/pkgs/development/erlang-modules/build-rebar3.nix
diff options
context:
space:
mode:
authorEric Merritt <eric@merritt.tech>2016-01-10 18:39:37 -0800
committerEric Merritt <eric@merritt.tech>2016-01-15 08:17:33 -0800
commitacf4bfd585d2a566864dce2a051d2888bd472fa1 (patch)
treefcc5ef40b87bfd48872b7945c4f9ca011b906745 /pkgs/development/erlang-modules/build-rebar3.nix
parent6a493a2b43741d04e71ddaa2617afb9dca7d9426 (diff)
downloadnixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar.gz
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar.bz2
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar.lz
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar.xz
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.tar.zst
nixpkgs-acf4bfd585d2a566864dce2a051d2888bd472fa1.zip
erlang support: overridable allow installPhase
This commit allows the installPhase of buildRebar3 to be overridden by
the user.
Diffstat (limited to 'pkgs/development/erlang-modules/build-rebar3.nix')
-rw-r--r--pkgs/development/erlang-modules/build-rebar3.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/erlang-modules/build-rebar3.nix b/pkgs/development/erlang-modules/build-rebar3.nix
index 16e663d14b9..6ad82b62158 100644
--- a/pkgs/development/erlang-modules/build-rebar3.nix
+++ b/pkgs/development/erlang-modules/build-rebar3.nix
@@ -7,6 +7,7 @@
 , buildInputs ? [], erlangDeps ? [], pluginDeps ? []
 , postPatch ? ""
 , compilePorts ? false
+, installPhase ? null
 , meta ? {}
 , ... }@attrs:
 
@@ -56,7 +57,8 @@ let
       runHook postBuild
     '';
 
-    installPhase = ''
+    installPhase = if installPhase == null
+    then ''
       runHook preInstall
       mkdir -p "$out/lib/erlang/lib/${name}-${version}"
       for reldir in src ebin priv include; do
@@ -66,7 +68,8 @@ let
         success=1
       done
       runHook postInstall
-    '';
+    ''
+    else installPhase;
 
     meta = {
       inherit (erlang.meta) platforms;