depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-insta/default.nix
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

24 lines
701 B
Nix

{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-insta";
version = "1.20.0";
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "insta";
rev = version;
sha256 = "sha256-tzC5AOlms5UDQ8+L7M2Tb5K/RtjZuDs23JSnLGH6pkI=";
};
sourceRoot = "source/cargo-insta";
cargoSha256 = "sha256-9r/RPzjPzDSRamntfu8Xz4XWieAU/bnw2m9wtzwkcwk=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
meta = with lib; {
description = "A Cargo subcommand for snapshot testing";
homepage = "https://github.com/mitsuhiko/insta";
license = licenses.asl20;
maintainers = with lib.maintainers; [ oxalica ];
};
}