beam/buildMix: pass on custom nativeBuildInputs

3bc80f1938 changed buildInputs to
nativeBuildInputs, but broke specifying custom nativeBuildInputs.
master
Milan Pässler 2021-06-07 14:21:15 +02:00 committed by Raphael Megzari
parent f63332768e
commit eae65a197d
1 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
, version
, src
, buildInputs ? [ ]
, nativeBuildInputs ? [ ]
, beamDeps ? [ ]
, propagatedBuildInputs ? [ ]
, postPatch ? ""
@ -23,7 +24,7 @@ let
pkg = self: stdenv.mkDerivation (attrs // {
name = "${name}-${version}";
inherit version src buildInputs;
inherit version src;
MIX_ENV = mixEnv;
MIX_DEBUG = if enableDebugInfo then 1 else 0;
@ -37,7 +38,8 @@ let
addToSearchPath ERL_LIBS "$1/lib/erlang/lib"
'';
nativeBuildInputs = [ elixir hex ];
buildInputs = buildInputs ++ [ ];
nativeBuildInputs = nativeBuildInputs ++ [ elixir hex ];
propagatedBuildInputs = propagatedBuildInputs ++ beamDeps;
buildPhase = attrs.buildPhase or ''