diff --git a/pkgs/build-support/rust/build-rust-package/default.nix b/pkgs/build-support/rust/build-rust-package/default.nix index b978d4e6256e..305e65ea9a64 100644 --- a/pkgs/build-support/rust/build-rust-package/default.nix +++ b/pkgs/build-support/rust/build-rust-package/default.nix @@ -73,7 +73,11 @@ lib.extendMkDerivation { }@args: assert lib.assertMsg useFetchCargoVendor - "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05"; + "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05, remove it"; + + assert lib.warnIf (args ? useFetchCargoVendor) + "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05, remove it" + true; lib.optionalAttrs (stdenv.hostPlatform.isDarwin && buildType == "debug") { RUSTFLAGS = "-C split-debuginfo=packed " + (args.RUSTFLAGS or "");