2020-10-03 05:20:00 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-06 17:22:07 +00:00
|
|
|
|
2020-10-03 05:20:00 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "grpcurl";
|
2021-01-18 23:38:47 +00:00
|
|
|
version = "1.8.0";
|
2018-11-06 17:22:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fullstorydev";
|
|
|
|
repo = "grpcurl";
|
2020-10-03 05:20:00 +01:00
|
|
|
rev = "v${version}";
|
2021-01-18 23:38:47 +00:00
|
|
|
sha256 = "sha256-ZrL23eqA56BApwUtBwL5nSAd2LZbQxthyiFBnkJ5+Zg=";
|
2018-11-06 17:22:07 +00:00
|
|
|
};
|
|
|
|
|
2020-10-03 05:20:00 +01:00
|
|
|
subPackages = [ "cmd/grpcurl" ];
|
|
|
|
|
2021-01-18 23:38:47 +00:00
|
|
|
vendorSha256 = "sha256-Tx00zRlzxCgyYdcYjzCxnFe8HyiitaKLcXJjYWhYSic=";
|
2020-10-03 05:20:00 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2018-11-06 17:22:07 +00:00
|
|
|
|
2020-10-03 05:20:00 +01:00
|
|
|
meta = with lib; {
|
2018-11-06 17:22:07 +00:00
|
|
|
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/fullstorydev/grpcurl";
|
2020-10-03 05:20:00 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ knl ];
|
2018-11-06 17:22:07 +00:00
|
|
|
};
|
|
|
|
}
|