From 35371e3fe1a6b1fd7b2711edb6c42308080a8c20 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:43:39 +0200 Subject: [PATCH] grpc_cli: add aarch64-linux support --- pkgs/tools/networking/grpc_cli/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/networking/grpc_cli/default.nix b/pkgs/tools/networking/grpc_cli/default.nix index b68ff100b70b..f3e237a870d3 100644 --- a/pkgs/tools/networking/grpc_cli/default.nix +++ b/pkgs/tools/networking/grpc_cli/default.nix @@ -14,6 +14,7 @@ stdenv.mkDerivation rec { buildInputs = [ curl numactl ]; cmakeFlags = [ "-DgRPC_BUILD_TESTS=ON" ]; makeFlags = [ "grpc_cli" ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isAarch64 "-Wno-error=format-security"; installPhase = '' runHook preInstall @@ -26,6 +27,6 @@ stdenv.mkDerivation rec { homepage = "https://github.com/grpc/grpc"; license = licenses.asl20; maintainers = with maintainers; [ doriath ]; - platforms = [ "x86_64-linux" ]; + platforms = platforms.linux; }; }