argagg: move NIX_CFLAGS_COMPILE into env for structuredAttrs (#496830)

This commit is contained in:
Gergő Gutyina
2026-03-12 19:07:24 +00:00
committed by GitHub
+4 -2
View File
@@ -25,8 +25,10 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail "cmake_minimum_required( VERSION 2.8 )" "cmake_minimum_required(VERSION 3.10)"
'';
# fixes: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.
NIX_CFLAGS_COMPILE = lib.optional stdenv.cc.isClang "-Wno-error=deprecated-declarations";
env = lib.optionalAttrs stdenv.cc.isClang {
# fixes: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
};
meta = {
homepage = "https://github.com/vietjtnguyen/argagg";