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

27 lines
703 B
Nix
Raw Normal View History

2020-10-03 07:20:00 +03:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-11-06 20:22:07 +03:00
2020-10-03 07:20:00 +03:00
buildGoModule rec {
pname = "grpcurl";
2021-10-30 00:39:47 +03:00
version = "1.8.5";
2018-11-06 20:22:07 +03:00
src = fetchFromGitHub {
owner = "fullstorydev";
repo = "grpcurl";
2020-10-03 07:20:00 +03:00
rev = "v${version}";
2021-10-30 00:39:47 +03:00
sha256 = "sha256-73gp3UQk7D3aWK2jtMpiY4tiVhvHkTqZipoynosd3ec=";
2018-11-06 20:22:07 +03:00
};
2020-10-03 07:20:00 +03:00
subPackages = [ "cmd/grpcurl" ];
2021-10-30 00:39:47 +03:00
vendorSha256 = "sha256-dHh8zHtU/r6AscInfNfVFd5psys2b6D1FS02lSoiGto=";
2020-10-03 07:20:00 +03:00
2021-08-26 09:45:51 +03:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2018-11-06 20:22:07 +03:00
2020-10-03 07:20:00 +03:00
meta = with lib; {
2018-11-06 20:22:07 +03:00
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
homepage = "https://github.com/fullstorydev/grpcurl";
2020-10-03 07:20:00 +03:00
license = licenses.mit;
maintainers = with maintainers; [ knl ];
2018-11-06 20:22:07 +03:00
};
}