2020-10-11 12:50:04 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "grpcurl";
|
2020-10-11 12:50:04 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fullstorydev";
|
|
|
|
repo = "grpcurl";
|
2020-10-11 12:50:04 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "11wjyg5008mkpzdp6q6k6yxwxx5byas8kbp57kdi1r38pya38hna";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
subPackages = [ "cmd/grpcurl" ];
|
|
|
|
|
|
|
|
vendorSha256 = "0pc62dndca13jyk3bq6mp53w1ay7sfzf487m0cswvkijcsw8wk9q";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-11 12:50:04 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
|
|
|
|
homepage = "https://github.com/fullstorydev/grpcurl";
|
2020-10-11 12:50:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ knl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|