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";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.40";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitsuhiko";
|
|
|
|
repo = "insta";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "83f33653b687c84823fe6af00806107e1dd4f4b8";
|
|
|
|
hash = "sha256-eau5h75oZpxufTrf0fLHfr+3TIOFXB/kSgHX+o2GtiE=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-OqM8SERSWHtbvW6SZfM7lOrQZu66uzsv5wiD3Iqaf3s=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
checkFlags = [
|
|
|
|
# Depends on `rustfmt` and does not matter for packaging.
|
|
|
|
"--skip=utils::test_format_rust_expression"
|
|
|
|
# Requires networking
|
|
|
|
"--skip=test_force_update_snapshots"
|
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cargo subcommand for snapshot testing";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-insta";
|
2020-06-15 15:56:04 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|