buildRustPackage: handle cargoBuildFlags in cargoBuildHook
This commit is contained in:
parent
05e40e79a8
commit
087ab3db9c
@ -36,7 +36,6 @@
|
|||||||
, nativeBuildInputs ? []
|
, nativeBuildInputs ? []
|
||||||
, cargoUpdateHook ? ""
|
, cargoUpdateHook ? ""
|
||||||
, cargoDepsHook ? ""
|
, cargoDepsHook ? ""
|
||||||
, cargoBuildFlags ? []
|
|
||||||
, buildType ? "release"
|
, buildType ? "release"
|
||||||
, meta ? {}
|
, meta ? {}
|
||||||
, cargoVendorDir ? null
|
, cargoVendorDir ? null
|
||||||
@ -98,8 +97,6 @@ stdenv.mkDerivation ((removeAttrs args ["depsExtraArgs"]) // lib.optionalAttrs u
|
|||||||
} // {
|
} // {
|
||||||
inherit buildAndTestSubdir cargoDeps;
|
inherit buildAndTestSubdir cargoDeps;
|
||||||
|
|
||||||
cargoBuildFlags = lib.concatStringsSep " " cargoBuildFlags;
|
|
||||||
|
|
||||||
cargoBuildType = buildType;
|
cargoBuildType = buildType;
|
||||||
|
|
||||||
patchRegistryDeps = ./patch-registry-deps;
|
patchRegistryDeps = ./patch-registry-deps;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
declare -a cargoBuildFlags
|
||||||
|
|
||||||
cargoBuildHook() {
|
cargoBuildHook() {
|
||||||
echo "Executing cargoBuildHook"
|
echo "Executing cargoBuildHook"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user