2020-10-03 06:20:00 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-11-06 18:22:07 +01:00
|
|
|
|
2020-10-03 06:20:00 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "grpcurl";
|
2022-02-12 10:26:45 +01:00
|
|
|
version = "1.8.6";
|
2018-11-06 18:22:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fullstorydev";
|
|
|
|
repo = "grpcurl";
|
2020-10-03 06:20:00 +02:00
|
|
|
rev = "v${version}";
|
2022-02-12 10:26:45 +01:00
|
|
|
sha256 = "sha256-dS9r738y0B+p2eoo1NV54OEeRzsj9fOs09NB3HRKmJY=";
|
2018-11-06 18:22:07 +01:00
|
|
|
};
|
|
|
|
|
2020-10-03 06:20:00 +02:00
|
|
|
subPackages = [ "cmd/grpcurl" ];
|
|
|
|
|
2022-02-12 10:26:45 +01:00
|
|
|
vendorSha256 = "sha256-3f/GcOonE46GjCztjShRsisS/QGPjM4IJelZ8jAiSWU=";
|
2020-10-03 06:20:00 +02:00
|
|
|
|
2021-08-26 08:45:51 +02:00
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2018-11-06 18:22:07 +01:00
|
|
|
|
2020-10-03 06:20:00 +02:00
|
|
|
meta = with lib; {
|
2018-11-06 18:22:07 +01:00
|
|
|
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/fullstorydev/grpcurl";
|
2020-10-03 06:20:00 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ knl ];
|
2018-11-06 18:22:07 +01:00
|
|
|
};
|
|
|
|
}
|