mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Merge pull request #212165 from doriath/add-grpc-cli
grpc_cli: init at 1.46.6
This commit is contained in:
commit
07bd49f951
@ -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
pkgs/tools/networking/grpc_cli/default.nix
Normal file
31
pkgs/tools/networking/grpc_cli/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user