2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "stripe-cli";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.8.1";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stripe";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-R1w+dVBIPbmBOhtVWKfB4tS+Jp1/tahRk6rifPM53HA=";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
vendorSha256 = "sha256-KgoSJcVUtE4ryJLtQXNCdl51sgO94vyb682OdL5CYw8=";
|
2020-10-19 00:13:06 +00:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/stripe"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
homepage = "https://stripe.com/docs/stripe-cli";
|
|
|
|
description = "A command-line tool for Stripe";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ RaghavSood ];
|
2022-04-03 18:54:34 +00:00
|
|
|
mainProgram = "stripe";
|
2020-10-19 00:13:06 +00:00
|
|
|
};
|
|
|
|
}
|