From 1bb9dc1f31ed683693257e197119914c1a89aa6f Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sun, 4 Aug 2024 19:15:23 +0200 Subject: [PATCH] cargo-insta: 1.33.0 -> 1.39-unstable-2024-08-22 Updates insta to latest unstable release. Insta vendored their lockfiles again, fixing: #317404. Because it is not released yet, I have pulled from the unstable main for now. --- pkgs/development/tools/rust/cargo-insta/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-insta/default.nix b/pkgs/development/tools/rust/cargo-insta/default.nix index 7ff2bb737987..36dfaafdadfd 100644 --- a/pkgs/development/tools/rust/cargo-insta/default.nix +++ b/pkgs/development/tools/rust/cargo-insta/default.nix @@ -5,18 +5,20 @@ rustPlatform.buildRustPackage rec { pname = "cargo-insta"; - version = "1.33.0"; + # use stable release once 1.40 lands + version = "1.39-unstable-2024-08-22"; src = fetchFromGitHub { owner = "mitsuhiko"; repo = "insta"; - rev = "refs/tags/${version}"; - hash = "sha256-w/dxIQ7KRrn86PwiE/g5L9Gn8KszPF9u/zlwE/FYDu4="; + rev = "abb6ba50163fb9093fa79c2fb784a57e08b2fcc0"; + hash = "sha256-465xY68M00lBM+3pz8FIXkBXnRrMi4wbBRieYHz0w+s="; }; - sourceRoot = "${src.name}/cargo-insta"; + cargoHash = "sha256-2mf9GJ1BtZE1k9jIdFmjiK1KfQ9qPkeSABT8X7G+p9I="; - cargoHash = "sha256-mEtmZ+wFo1WI1IMNYsVqSVScFDLdiXBbghH7c0l/3NQ="; + # Depends on `rustfmt` and does not matter for packaging. + checkFlags = [ "--skip=utils::test_format_rust_expression" ]; meta = with lib; { description = "Cargo subcommand for snapshot testing";