mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
grpc_cli: init at 1.46.6
This commit is contained in:
parent
24a60ae8fd
commit
8d994b6490
2 changed files with 33 additions and 0 deletions
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" ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue