ncurses*: move CFLAGS into env for structuredAttrs (#492199)

This commit is contained in:
Jo
2026-02-20 11:39:33 +00:00
committed by GitHub
@@ -123,7 +123,9 @@ stdenv.mkDerivation (finalAttrs: {
];
# Only the C compiler, and explicitly not C++ compiler needs this flag on solaris:
CFLAGS = lib.optionalString stdenv.hostPlatform.isSunOS "-D_XOPEN_SOURCE_EXTENDED";
env = lib.optionalAttrs stdenv.hostPlatform.isSunOS {
CFLAGS = "-D_XOPEN_SOURCE_EXTENDED";
};
strictDeps = true;