flashrom: fix building with clang

This commit is contained in:
Tristan Ross
2025-01-25 20:53:22 -08:00
parent d30faab98e
commit 3bdb1ca6ba
+4
View File
@@ -53,6 +53,10 @@ stdenv.mkDerivation rec {
install -Dm644 util/flashrom_udev.rules $out/lib/udev/rules.d/flashrom.rules
'';
NIX_CFLAGS_COMPILE = lib.optionalString (
stdenv.cc.isClang && !stdenv.hostPlatform.isDarwin
) "-Wno-gnu-folding-constant";
meta = with lib; {
homepage = "https://www.flashrom.org";
description = "Utility for reading, writing, erasing and verifying flash ROM chips";