diff options
author | Milan Pässler <milan@petabyte.dev> | 2021-06-07 14:21:15 +0200 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-06-08 11:13:52 +0900 |
commit | eae65a197dc28c9eac6b6afad065d7853339ea6e (patch) | |
tree | 492b298e72ea3cc86575575506188b9b123d4a80 /pkgs/development/beam-modules/build-mix.nix | |
parent | f63332768e57b6d04625e1c930a51185b69ee067 (diff) |
beam/buildMix: pass on custom nativeBuildInputs
3bc80f19388a8b29b65c91fd4550f51cbc9a3a96 changed buildInputs to nativeBuildInputs, but broke specifying custom nativeBuildInputs.
Diffstat (limited to 'pkgs/development/beam-modules/build-mix.nix')
-rw-r--r-- | pkgs/development/beam-modules/build-mix.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix index 783ae34dcd38b..728d249c97d8c 100644 --- a/pkgs/development/beam-modules/build-mix.nix +++ b/pkgs/development/beam-modules/build-mix.nix @@ -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 '' |