depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-insta/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

24 lines
702 B
Nix

{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-insta";
version = "1.7.1";
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "insta";
rev = version;
sha256 = "1qzzkhailxjqwp3rmdcpp112wn3x0gfi788vwj77pfdyclhpj0a7";
};
sourceRoot = "source/cargo-insta";
cargoSha256 = "01fj2j7ibrk5dyrfkmc610lh1p6f6bgzbgivq3dsd64vslhqmabw";
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 ];
};
}