nixpkgs/pkgs/tools/admin/stripe-cli/default.nix

27 lines
613 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2020-10-17 15:35:58 +00:00
buildGoModule rec {
pname = "stripe-cli";
2021-03-30 18:50:40 +00:00
version = "1.5.12";
2020-10-17 15:35:58 +00:00
src = fetchFromGitHub {
owner = "stripe";
repo = pname;
rev = "v${version}";
2021-03-30 18:50:40 +00:00
sha256 = "sha256-eMxukwaJqsXL0+Euvk5mM+pcAsT3GsF9filuyRL4tXg=";
2020-10-17 15:35:58 +00:00
};
2021-03-22 16:42:43 +00:00
vendorSha256 = "sha256-e7EZ5o30vDpS904/R1y7/Mds7HxQNmsIftrnc1Bj2bc=";
2020-10-17 15:35:58 +00:00
subPackages = [
"cmd/stripe"
];
meta = with lib; {
2020-10-17 15:35:58 +00:00
homepage = "https://stripe.com/docs/stripe-cli";
description = "A command-line tool for Stripe";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ RaghavSood ];
};
}