Unverified Commit 07bd49f9 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #212165 from doriath/add-grpc-cli

grpc_cli: init at 1.46.6
parents 3e7bf1e5 8d994b64
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3855,6 +3855,12 @@
    githubId = 39825;
    name = "Dominik Honnef";
  };
  doriath = {
    email = "tomasz.zurkowski@gmail.com";
    github = "doriath";
    githubId = 150959;
    name = "Tomasz Zurkowski";
  };
  doronbehar = {
    email = "me@doronbehar.com";
    github = "doronbehar";
+31 −0
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, automake, cmake, autoconf, curl, numactl }:

stdenv.mkDerivation rec {
  pname = "grpc_cli";
  version = "1.46.6";
  src = fetchFromGitHub {
    owner = "grpc";
    repo = "grpc";
    rev = "v${version}";
    hash = "sha256-UPenQh6+FBryQiOoeijsXkCZjlMzYljkg2aUtSFJFL4=";
    fetchSubmodules = true;
  };
  nativeBuildInputs = [ automake cmake autoconf ];
  buildInputs = [ curl numactl ];
  cmakeFlags = [ "-DgRPC_BUILD_TESTS=ON" ];
  makeFlags = [ "grpc_cli" ];
  installPhase = ''
    runHook preInstall

    install -Dm555 grpc_cli "$out/bin/grpc_cli"

    runHook postInstall
  '';
  meta = with lib; {
    description = "The command line tool for interacting with grpc services.";
    homepage = "https://github.com/grpc/grpc";
    license = licenses.asl20;
    maintainers = with maintainers; [ doriath ];
    platforms = [ "x86_64-linux" ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7940,6 +7940,8 @@ with pkgs;
  grpcurl = callPackage ../tools/networking/grpcurl { };
  grpc_cli = callPackage ../tools/networking/grpc_cli { };
  grpc-gateway = callPackage ../development/tools/grpc-gateway { };
  grpcui = callPackage ../tools/networking/grpcui { };