Skip to content

Commit de305ae

Browse files
committed
defaultGemConfig.prometheus-client-mmap: fetchCargoTarball -> 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.
1 parent fc26172 commit de305ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/development/ruby-modules/gem-config/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ in
308308
'';
309309
} // lib.optionalAttrs (lib.versionAtLeast attrs.version "1.0") {
310310
cargoRoot = "ext/fast_mmaped_file_rs";
311-
cargoDeps = rustPlatform.fetchCargoTarball {
311+
cargoDeps = rustPlatform.fetchCargoVendor {
312312
src = stdenv.mkDerivation {
313313
inherit (buildRubyGem { inherit (attrs) gemName version source; })
314314
name
@@ -322,11 +322,11 @@ in
322322
'';
323323
};
324324
hash = if lib.versionAtLeast attrs.version "1.1.2"
325-
then "sha256-pNzW2fQZDcuqu8apv3GU7lUC/H1cX5WRifBBQlbE8+s="
325+
then "sha256-8EpYU6MSzMG3RzneDx0GwZ2N46Po8FdA/7Khy/7KHWo="
326326
else
327327
if lib.versionAtLeast attrs.version "1.1.1"
328-
then "sha256-RsN5XWX7Mj2ORccM0eczY+44WXsbXNTnJVcCMvnOATk="
329-
else "sha256-XuQZPbFWqPHlrJvllkvLl1FjKeoAUbi8oKDrS2rY1KM=";
328+
then "sha256-V4NlFgVJy+V9fdbZWObn52H91IFSIU1seErMcxh1x5w="
329+
else "sha256-GFRIjvBPhqT4h6gE+GF32WW1wgZTaaHXRF7tIXnRM1Q=";
330330
};
331331
nativeBuildInputs = [
332332
cargo

0 commit comments

Comments
 (0)