nixpkgs/pkgs/tools/networking/grpc_cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
977 B
Nix
Raw Normal View History

2023-01-27 19:37:36 +00:00
{ lib, stdenv, fetchFromGitHub, automake, cmake, autoconf, curl, numactl }:
stdenv.mkDerivation rec {
pname = "grpc_cli";
2023-07-19 04:42:48 +00:00
version = "1.56.2";
2023-01-27 19:37:36 +00:00
src = fetchFromGitHub {
owner = "grpc";
repo = "grpc";
rev = "v${version}";
2023-07-19 04:42:48 +00:00
hash = "sha256-yjEaVfyfOlH/GPZz06lKvdds88VZUygPe1OxueMDnJA=";
2023-01-27 19:37:36 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ automake cmake autoconf ];
buildInputs = [ curl numactl ];
cmakeFlags = [ "-DgRPC_BUILD_TESTS=ON" ];
makeFlags = [ "grpc_cli" ];
2023-02-23 14:43:39 +00:00
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-Wno-error=format-security";
2023-01-27 19:37:36 +00:00
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 ];
2023-02-23 14:43:39 +00:00
platforms = platforms.linux;
2023-01-27 19:37:36 +00:00
};
}