Merge pull request #194269 from imsl/rebar3WithPlugins-allow-override-rebar3
beam-modules/rebar3WithPlugins: Allow overriding the rebar3 package used
This commit is contained in:
commit
bd374e4b67
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ let
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ] }:
|
|
||||||
|
# Alias rebar3 so we can use it as default parameter below
|
||||||
|
_rebar3 = rebar3;
|
||||||
|
|
||||||
|
rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ], rebar3 ? _rebar3 }:
|
||||||
let
|
let
|
||||||
pluginLibDirs = map (p: "${p}/lib/erlang/lib") (lib.unique (plugins ++ globalPlugins));
|
pluginLibDirs = map (p: "${p}/lib/erlang/lib") (lib.unique (plugins ++ globalPlugins));
|
||||||
globalPluginNames = lib.unique (map (p: p.packageName) globalPlugins);
|
globalPluginNames = lib.unique (map (p: p.packageName) globalPlugins);
|
||||||
|
|
Loading…
Reference in a new issue