summary refs log tree commit diff
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2022-12-25 11:21:56 +0100
committerGitHub <noreply@github.com>2022-12-25 11:21:56 +0100
commitbd374e4b6774b4a1b4d14fc6fbd1a7ae976da766 (patch)
treefffc02aaf1915383c7428e591425782638eecdc1
parente7d1021ed9c4273a28fc6bb5320896c6d71fe832 (diff)
parent8419e265f3ec000017d40b321f22c3cb6f6a6753 (diff)
downloadnixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar.gz
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar.bz2
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar.lz
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar.xz
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.tar.zst
nixpkgs-bd374e4b6774b4a1b4d14fc6fbd1a7ae976da766.zip
Merge pull request #194269 from imsl/rebar3WithPlugins-allow-override-rebar3
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 56859969708..8a0ff951b9d 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);