depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-insta/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

24 lines
701 B
Nix

{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "cargo-insta";
version = "1.18.1";
src = fetchFromGitHub {
owner = "mitsuhiko";
repo = "insta";
rev = version;
sha256 = "sha256-yTzLEV4yP6It4KrUPdTgIJrocW+VToOeyaSvOSQRVMU=";
};
sourceRoot = "source/cargo-insta";
cargoSha256 = "sha256-y9o2sNiDIYKzrsgG+tA17PswR6DZn7ms8n5EG/J9oOU=";
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 ];
};
}