Commit de408167 authored by oxalica's avatar oxalica Committed by zowoq
Browse files

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.
parent 21eaf070
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;