diff --git a/pkgs/by-name/ri/rio/package.nix b/pkgs/by-name/ri/rio/package.nix index 21a169c0288a..f5717869361b 100644 --- a/pkgs/by-name/ri/rio/package.nix +++ b/pkgs/by-name/ri/rio/package.nix @@ -51,16 +51,24 @@ let in rustPlatform.buildRustPackage (finalAttrs: { pname = "rio"; - version = "0.4.5"; + version = "0.4.7"; src = fetchFromGitHub { owner = "raphamorim"; repo = "rio"; tag = "v${finalAttrs.version}"; - hash = "sha256-ON7CJ1NDwLfjvLZ0ugN45LUjBGiwRNASiQwuDa6F1vM="; + hash = "sha256-vlNt8hBb1fhO5tEAID5WXMc7I0k9vn6/L45nkTXS6Qg="; }; - cargoHash = "sha256-vSQ5heZZ8tYKeMABhZ8AziEAniavnAasH04BVlqYF4g="; + cargoHash = "sha256-8qVS9wINEBLKKWbylG3sHO+oqnLvsa1wgN0OOHFzOBM="; + + # The 0.4.7 "update to rust 1.96" bump (raphamorim/rio@6a11aa33c7) only made + # clippy-style refactors that build on older rustc; the MSRV pin is cosmetic. + # Lower it so nixpkgs' rustc (1.95) can build rio. + postPatch = '' + substituteInPlace Cargo.toml \ + --replace-fail 'rust-version = "1.96.0"' 'rust-version = "1.95.0"' + ''; nativeBuildInputs = [ rustPlatform.bindgenHook