nixpkgs-suyu/pkgs/tools/networking/grpcurl/default.nix

27 lines
716 B
Nix
Raw Normal View History

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 {
pname = "grpcurl";
2021-07-23 10:40:03 +02:00
version = "1.8.2";
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}";
2021-07-23 10:40:03 +02:00
sha256 = "sha256-/no8bRGoKibtcjaITUuzwAbX+gPHNJROSf79iuuRwe4=";
2018-11-06 18:22:07 +01:00
};
2020-10-03 06:20:00 +02:00
subPackages = [ "cmd/grpcurl" ];
2021-07-23 10:40:03 +02:00
vendorSha256 = "sha256-nl8vKVhUMSO20qCDyhNkU5cghNy8vIFqSBvLk59nbWg=";
2020-10-03 06:20:00 +02:00
buildFlagsArray = [ "-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";
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
};
}