Unverified Commit 1bb51951 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #219128 from r-ryantm/auto-update/cargo-insta

cargo-insta: 1.26.0 -> 1.28.0
parents 17ca3dd2 de7ee230
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, libiconv
}:

rustPlatform.buildRustPackage rec {
  pname = "cargo-insta";
  version = "1.26.0";
  version = "1.28.0";

  src = fetchFromGitHub {
    owner = "mitsuhiko";
    repo = "insta";
    rev = version;
    sha256 = "sha256-h0jRuY3GSqK85NCeFqdqjyVdNTMbdtD70zU5G3w1STc=";
    rev = "refs/tags/${version}";
    hash = "sha256-GqM3b2evjACNkTOyfA6N6TInuGo9f/1retkXVTgbJ3A=";
  };

  sourceRoot = "source/cargo-insta";
  cargoHash = "sha256-GC2ggTJJV3Aww3qPfsnuND0eII1l3OBoZfi5RtvhO8I=";
  buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];

  cargoHash = "sha256-ZIS3O19N7w+sL+2IdoCw4/Hx9Jtjx7MYE7JcEu+PFRA=";

  buildInputs = lib.optionals stdenv.isDarwin [
    libiconv
  ];

  meta = with lib; {
    description = "A Cargo subcommand for snapshot testing";
    homepage = "https://github.com/mitsuhiko/insta";
    changelog = "https://github.com/mitsuhiko/insta/blob/${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with lib.maintainers; [ oxalica ];
  };