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

grpc_cli: init at 1.46.6
This commit is contained in:
Nick Cao 2023-02-13 07:59:02 +08:00 committed by GitHub
commit 07bd49f951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 0 deletions

View File

@ -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";

View File

@ -0,0 +1,31 @@
{ 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" ];
};
}

View File

@ -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 { };