nixpkgs/pkgs/development/tools/rust/cargo-insta/default.nix

28 lines
718 B
Nix
Raw Normal View History

2020-06-18 13:49:20 +01:00
{ lib, rustPlatform, fetchFromGitHub }:
2020-06-18 12:13:04 +01:00
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 ];
};
}