1 { lib, stdenv, fetchFromGitHub, automake, cmake, autoconf, curl, numactl }:
3 stdenv.mkDerivation rec {
6 src = fetchFromGitHub {
10 hash = "sha256-nka7ZzyZIeEAPaz7v/8RAeo9XmkgrOrHpor3siAx7Ec=";
11 fetchSubmodules = true;
13 nativeBuildInputs = [ automake cmake autoconf ];
14 buildInputs = [ curl numactl ];
15 cmakeFlags = [ "-DgRPC_BUILD_TESTS=ON" ];
16 makeFlags = [ "grpc_cli" ];
17 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isAarch64 "-Wno-error=format-security";
21 install -Dm555 grpc_cli "$out/bin/grpc_cli"
26 description = "Command line tool for interacting with grpc services";
27 homepage = "https://github.com/grpc/grpc";
28 license = licenses.asl20;
29 maintainers = with maintainers; [ doriath ];
30 platforms = platforms.linux;
31 mainProgram = "grpc_cli";