Commit 68dc1686 authored by figsoda's avatar figsoda
Browse files

cargo-insta: 1.45.1 -> 1.46.3

parent cf427578
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -2,20 +2,26 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  runtimeShell,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "cargo-insta";
  version = "1.45.1";
  version = "1.46.3";

  src = fetchFromGitHub {
    owner = "mitsuhiko";
    repo = "insta";
    tag = finalAttrs.version;
    hash = "sha256-uNf2KkwgRCBCVFDN5ql8MisfAoU4+z7XLWogyx8sgKw=";
    hash = "sha256-MRGtD6ZbZkiblq9tadiJPrOGWZ2uM+8qIw2KlP/KuJc=";
  };

  cargoHash = "sha256-U9rtovpekFiSv+RhPwgTiUVjAPPDzis1O0RrIOKWcQc=";
  cargoHash = "sha256-lp7jaftj/BXorK+xxO4FS8aCpi1SSAC2/xt0CX25Dos=";

  postPatch = ''
    substituteInPlace cargo-insta/tests/functional/test_runner_fallback.rs \
      --replace-fail '#!/bin/bash' '#!${runtimeShell}'
  '';

  checkFlags = [
    # Depends on `rustfmt` and does not matter for packaging.