From de408167ede9c2cab0a7831f4079ff9ba8c644d8 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 2 Mar 2023 07:29:28 +0800 Subject: [PATCH] buildRustPackage: don't passthru `cargoDeps` `cargoDeps` is already passed as `mkDerivation` arguments, and should not be `passthru`ed again. This fixes the mismatch of `drv.cargoDeps` and the actual dependency when the original derivation is overriden. --- pkgs/build-support/rust/build-rust-package/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/build-support/rust/build-rust-package/default.nix b/pkgs/build-support/rust/build-rust-package/default.nix index b057d1681b03..5ba166bae1a3 100644 --- a/pkgs/build-support/rust/build-rust-package/default.nix +++ b/pkgs/build-support/rust/build-rust-package/default.nix @@ -154,8 +154,6 @@ stdenv.mkDerivation ((removeAttrs args [ "depsExtraArgs" "cargoUpdateHook" "carg strictDeps = true; - passthru = { inherit cargoDeps; } // (args.passthru or {}); - meta = { # default to Rust's platforms platforms = rustc.meta.platforms;