ncurses*: move CFLAGS into env for structuredAttrs (#492199)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user