rkdeveloptool: fix build on darwin (#453564)

This commit is contained in:
Matthew Croughan
2025-10-24 00:05:01 +00:00
committed by GitHub
+3 -1
View File
@@ -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";