nixpkgs/pkgs/by-name/gr/grpcurl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
730 B
Nix
Raw Normal View History

2020-10-03 05:20:00 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-11-06 17:22:07 +00:00
2020-10-03 05:20:00 +01:00
buildGoModule rec {
pname = "grpcurl";
2024-04-11 01:58:40 +01:00
version = "1.9.1";
2018-11-06 17:22:07 +00:00
src = fetchFromGitHub {
owner = "fullstorydev";
repo = "grpcurl";
2020-10-03 05:20:00 +01:00
rev = "v${version}";
2024-04-11 01:58:40 +01:00
sha256 = "sha256-OVlFOZD4+ZXRKl0Q0Dh5Etij/zeB1jTGoY8n13AyLa4=";
2018-11-06 17:22:07 +00:00
};
2020-10-03 05:20:00 +01:00
subPackages = [ "cmd/grpcurl" ];
2024-04-11 01:58:40 +01:00
vendorHash = "sha256-KsPrJC4hGrGEny8wVWE1EG00qn+b1Rrvh4qK27VzgLU=";
2020-10-03 05:20:00 +01:00
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
2018-11-06 17:22:07 +00:00
2020-10-03 05:20:00 +01:00
meta = with lib; {
2018-11-06 17:22:07 +00:00
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
homepage = "https://github.com/fullstorydev/grpcurl";
2020-10-03 05:20:00 +01:00
license = licenses.mit;
maintainers = with maintainers; [ knl ];
2024-02-11 02:19:15 +00:00
mainProgram = "grpcurl";
2018-11-06 17:22:07 +00:00
};
}