889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
24 lines
701 B
Nix
24 lines
701 B
Nix
{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-insta";
|
|
version = "1.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mitsuhiko";
|
|
repo = "insta";
|
|
rev = version;
|
|
sha256 = "sha256-IwtAd8qhG7FgnC7esipwAbSssVKIirB6GCedgNRPabo=";
|
|
};
|
|
|
|
sourceRoot = "source/cargo-insta";
|
|
cargoSha256 = "sha256-asWf+wIOpbZx9YOw5c4prg2D6FSRCTcc5FgWY93MNII=";
|
|
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 ];
|
|
};
|
|
}
|