2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
27 lines
718 B
Nix
27 lines
718 B
Nix
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-insta";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "insta";
|
|
rev = version;
|
|
sha256 = "1lcbdzh139lhmpz3pyik8nbgrbfc42z9ydz2hkg2lzjdpfdsz3ag";
|
|
};
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
cargoSha256 = "0qjzbcaznnmb0p0r23s82jjbfs5mhhkacg26lf8fq4vvlkr1hsqf";
|
|
|
|
patches = [ ./ignore-rustfmt-test.patch ];
|
|
|
|
cargoBuildFlags = [ "-p cargo-insta" ];
|
|
|
|
meta = with lib; {
|
|
description = "A Cargo subcommand for snapshot testing";
|
|
homepage = "https://github.com/mitsuhiko/insta";
|
|
license = licenses.asl20;
|
|
maintainers = with lib.maintainers; [ oxalica ];
|
|
};
|
|
}
|