Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-insta";
|
|
version = "1.43.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "insta";
|
|
tag = version;
|
|
hash = "sha256-+0FJr1IXTnIc947ytB00z30m81peY/CjnBHMYvcQZl0=";
|
|
};
|
|
|
|
cargoHash = "sha256-BYYn+GGJoI0W4mbQcKlQe5IOObIQrV8hTzJeRU6cIZo=";
|
|
|
|
checkFlags = [
|
|
# Depends on `rustfmt` and does not matter for packaging.
|
|
"--skip=utils::test_format_rust_expression"
|
|
# Requires networking
|
|
"--skip=test_force_update_snapshots"
|
|
|
|
"--skip=test_ignored_snapshots"
|
|
"--skip=workspace::test_insta_workspace_root"
|
|
"--skip=env::test_get_cargo_workspace_manifest_dir"
|
|
];
|
|
|
|
meta = {
|
|
description = "Cargo subcommand for snapshot testing";
|
|
mainProgram = "cargo-insta";
|
|
homepage = "https://github.com/mitsuhiko/insta";
|
|
changelog = "https://github.com/mitsuhiko/insta/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [
|
|
figsoda
|
|
oxalica
|
|
matthiasbeyer
|
|
];
|
|
};
|
|
}
|