2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-insta";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.31.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitsuhiko";
|
|
|
|
repo = "insta";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-hQaVUBw8X60DW1Ox4GzO+OCWMHmVYuCkjH5x/sMULiE=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
sourceRoot = "source/cargo-insta";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-q6Ups4SDGjT5Zc9ujhRpRdh3uWq99lizgA7gpPVSl+A=";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Cargo subcommand for snapshot testing";
|
|
|
|
homepage = "https://github.com/mitsuhiko/insta";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/mitsuhiko/insta/blob/${version}/CHANGELOG.md";
|
2020-06-15 15:56:04 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-27 19:17:25 +00:00
|
|
|
maintainers = with lib.maintainers; [ figsoda oxalica ];
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
}
|