mdbook: use fetchCargoVendor

Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes. It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

+6 -2
+6 -2
pkgs/by-name/md/mdbook/package.nix
··· 11 11 let 12 12 version = "0.4.43"; 13 13 in 14 - rustPlatform.buildRustPackage { 14 + rustPlatform.buildRustPackage rec { 15 15 inherit version; 16 16 pname = "mdbook"; 17 17 ··· 22 22 hash = "sha256-aADNcuIeDef9+a3NOWQxo6IRnKJ6AbkvE4GqvFbubyI="; 23 23 }; 24 24 25 - cargoHash = "sha256-8K72sJywMKxX/31SJuCEoacWvHrpkuwGGLXJ9MsDkTE="; 25 + cargoDeps = rustPlatform.fetchCargoVendor { 26 + inherit pname version src; 27 + allowGitDependencies = false; 28 + hash = "sha256-W5hg6ECNQRIh07ogZkXTn51el2YltutY86aJBYFDTP4="; 29 + }; 26 30 27 31 nativeBuildInputs = [ installShellFiles ]; 28 32