2021-05-20 23:08:51 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, libiconv, stdenv }:
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-insta";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.18.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitsuhiko";
|
|
|
|
repo = "insta";
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-yTzLEV4yP6It4KrUPdTgIJrocW+VToOeyaSvOSQRVMU=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
sourceRoot = "source/cargo-insta";
|
2022-09-09 14:08:57 +00:00
|
|
|
cargoSha256 = "sha256-y9o2sNiDIYKzrsgG+tA17PswR6DZn7ms8n5EG/J9oOU=";
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Cargo subcommand for snapshot testing";
|
|
|
|
homepage = "https://github.com/mitsuhiko/insta";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ oxalica ];
|
|
|
|
};
|
|
|
|
}
|