depot/third_party/nixpkgs/pkgs/tools/networking/grpcurl/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

26 lines
716 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "grpcurl";
version = "1.8.2";
src = fetchFromGitHub {
owner = "fullstorydev";
repo = "grpcurl";
rev = "v${version}";
sha256 = "sha256-/no8bRGoKibtcjaITUuzwAbX+gPHNJROSf79iuuRwe4=";
};
subPackages = [ "cmd/grpcurl" ];
vendorSha256 = "sha256-nl8vKVhUMSO20qCDyhNkU5cghNy8vIFqSBvLk59nbWg=";
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
meta = with lib; {
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
homepage = "https://github.com/fullstorydev/grpcurl";
license = licenses.mit;
maintainers = with maintainers; [ knl ];
};
}