buildRebar3: use rebar3WithPlugins

This commit is contained in:
David
2021-05-08 13:47:27 +02:00
committed by Raphael Megzari
parent aaa16732ce
commit dcc075ce21
3 changed files with 8 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, writeText, erlang, rebar3, openssl, libyaml,
{ stdenv, writeText, erlang, rebar3WithPlugins, openssl, libyaml,
pc, lib }:
{ name, version
@@ -19,7 +19,10 @@ with lib;
let
debugInfoFlag = lib.optionalString (enableDebugInfo || erlang.debugInfo) "debug-info";
ownPlugins = buildPlugins ++ (if compilePorts then [pc] else []);
rebar3 = rebar3WithPlugins {
plugins = buildPlugins;
globalPlugins = (if compilePorts then [pc] else []);
};
shell = drv: stdenv.mkDerivation {
name = "interactive-shell-${drv.name}";
@@ -36,13 +39,9 @@ let
inherit version;
buildInputs = buildInputs ++ [ erlang rebar3 openssl libyaml ];
propagatedBuildInputs = unique (beamDeps ++ ownPlugins);
propagatedBuildInputs = unique beamDeps;
dontStrip = true;
# The following are used by rebar3-nix-bootstrap
inherit compilePorts;
buildPlugins = ownPlugins;
inherit src;
setupHook = writeText "setupHook.sh" ''