about summary refs log tree commit diff
path: root/pkgs/tools/networking/grpcurl/default.nix
blob: 12f285c2a60a992f030519d2a3ee019a05e8aa01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
# and modified to add meta and switch to fetchFromGitHub
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "grpcurl";
  version = "1.0.0";
  rev = "v${version}";

  goPackagePath = "github.com/fullstorydev/grpcurl";

  src = fetchFromGitHub {
    owner = "fullstorydev";
    repo = "grpcurl";
    rev = "d4d048fade4abcc2f0c3fb6f3e207289401d0a10";
    sha256 = "0v45lwjw2phavhi6m4ql49ri1423m249a6xcf00v9hi2x1y9dh6q";
  };

  goDeps = if stdenv.isDarwin
           then ./deps-darwin.nix
           else ./deps-linux.nix;

  meta = {
    description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
    homepage = https://github.com/fullstorydev/grpcurl;
    license = stdenv.lib.licenses.mit;
    maintainers = with stdenv.lib.maintainers; [ knl ];
  };
}