Commit fd3338c8 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

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.
parent f07977cf
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
let
  version = "0.4.43";
in
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage rec {
  inherit version;
  pname = "mdbook";

@@ -22,7 +22,11 @@ rustPlatform.buildRustPackage {
    hash = "sha256-aADNcuIeDef9+a3NOWQxo6IRnKJ6AbkvE4GqvFbubyI=";
  };

  cargoHash = "sha256-8K72sJywMKxX/31SJuCEoacWvHrpkuwGGLXJ9MsDkTE=";
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    allowGitDependencies = false;
    hash = "sha256-W5hg6ECNQRIh07ogZkXTn51el2YltutY86aJBYFDTP4=";
  };

  nativeBuildInputs = [ installShellFiles ];