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-10-09 19:29:22 +00:00
|
|
|
version = "1.32.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-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-s6d0q4K2UTG+BWzvH5KOAllzYAkEapEuDoiI9KQW31I=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/cargo-insta";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
cargoHash = "sha256-ZQUzoKE3OGaY22VYiku7GqjGN9jUNx09a0EcgCRzzcM=";
|
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-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ figsoda oxalica matthiasbeyer ];
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
}
|