summary refs log tree commit diff
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2022-09-15 22:27:45 +0200
committerRickard Nilsson <rickynils@gmail.com>2022-10-03 20:16:18 +0200
commit8419e265f3ec000017d40b321f22c3cb6f6a6753 (patch)
treeb738012a72f3910af7e66fb54bdb5bdc1a202c79
parent300e293349b79db9c71d7f6f7aa91657a05356ed (diff)
downloadnixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar.gz
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar.bz2
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar.lz
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar.xz
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.tar.zst
nixpkgs-8419e265f3ec000017d40b321f22c3cb6f6a6753.zip
beam-modules/rebar3WithPlugins: Allow overriding the rebar3 package used
-rw-r--r--pkgs/development/tools/build-managers/rebar3/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/tools/build-managers/rebar3/default.nix b/pkgs/development/tools/build-managers/rebar3/default.nix
index c7b6f72ac8e..5791ed830a6 100644
--- a/pkgs/development/tools/build-managers/rebar3/default.nix
+++ b/pkgs/development/tools/build-managers/rebar3/default.nix
@@ -94,7 +94,11 @@ let
       fi
     '';
   };
-  rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ] }:
+
+  # Alias rebar3 so we can use it as default parameter below
+  _rebar3 = rebar3;
+
+  rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ], rebar3 ? _rebar3 }:
     let
       pluginLibDirs = map (p: "${p}/lib/erlang/lib") (lib.unique (plugins ++ globalPlugins));
       globalPluginNames = lib.unique (map (p: p.packageName) globalPlugins);