nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "grpcurl";
9 version = "1.9.3";
10
11 src = fetchFromGitHub {
12 owner = "fullstorydev";
13 repo = "grpcurl";
14 rev = "v${version}";
15 sha256 = "sha256-bgjlCK3sTRrz1FhAs7mQbaea2gMS7liLXU6z02FPTfg=";
16 };
17
18 subPackages = [ "cmd/grpcurl" ];
19
20 vendorHash = "sha256-OHU3uoQVui9qnzGi4waOmY9IpTIEGCpdV41CWIIL98E=";
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X main.version=${version}"
26 ];
27
28 meta = with lib; {
29 description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
30 homepage = "https://github.com/fullstorydev/grpcurl";
31 license = licenses.mit;
32 maintainers = with maintainers; [ knl ];
33 mainProgram = "grpcurl";
34 };
35}