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