From 36a6c1d35ca52799db829dec24973cddb47aed82 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Sun, 19 Oct 2025 18:09:46 +0100 Subject: [PATCH] rkdeveloptool: fix build on darwin --- pkgs/by-name/rk/rkdeveloptool/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/rk/rkdeveloptool/package.nix b/pkgs/by-name/rk/rkdeveloptool/package.nix index 9b319231ad05..4b9047484665 100644 --- a/pkgs/by-name/rk/rkdeveloptool/package.nix +++ b/pkgs/by-name/rk/rkdeveloptool/package.nix @@ -26,7 +26,9 @@ stdenv.mkDerivation { buildInputs = [ libusb1 ]; # main.cpp:1568:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5 - CPPFLAGS = lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ]; + CPPFLAGS = + lib.optionals stdenv.cc.isGNU [ "-Wno-error=format-truncation" ] + ++ lib.optionals stdenv.isDarwin [ "-Wno-error=vla-cxx-extension" ]; meta = with lib; { homepage = "https://github.com/rockchip-linux/rkdeveloptool";