Add nativeBuildInputs as config parameter

This commit is contained in:
Tobias Happ 2020-04-13 19:32:57 +02:00 committed by Nicolas Mattia
parent 1dd6323006
commit 0b7c5880c0
2 changed files with 6 additions and 1 deletions

View file

@ -38,6 +38,7 @@
, rustc
, cargo
, override
, nativeBuildInputs
, buildInputs
, builtDependencies
, release
@ -181,7 +182,7 @@ let
# needed at various steps in the build
jq
rsync
];
] ++ nativeBuildInputs;
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
darwin.Security

View file

@ -59,6 +59,9 @@ let
cargoTestOptions =
allowFun attrs0 "cargoTestOptions" [ "$cargo_release" ''-j "$NIX_BUILD_CORES"'' ];
# Extra `nativeBuildInputs` to all derivations.
nativeBuildInputs = attrs0.nativeBuildInputs or [];
# Extra `buildInputs` to all derivations.
buildInputs = attrs0.buildInputs or [];
@ -172,6 +175,7 @@ let
# config used during build the prebuild and the final build
buildConfig = {
inherit (attrs)
nativeBuildInputs
buildInputs
release
override