mirror of
https://github.com/nix-community/naersk
synced 2024-11-10 06:04:17 +00:00
Add nativeBuildInputs as config parameter
This commit is contained in:
parent
1dd6323006
commit
0b7c5880c0
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue