grpc_cli: init at 1.46.6

This commit is contained in:
Tomasz Zurkowski 2023-01-27 20:37:36 +01:00
parent 24a60ae8fd
commit 8d994b6490
2 changed files with 33 additions and 0 deletions

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

@ -7819,6 +7819,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 { };