readline: move CFLAGS into env for structuredAttrs (#492200)

This commit is contained in:
Jo
2026-02-20 11:39:03 +00:00
committed by GitHub
+6 -1
View File
@@ -83,7 +83,12 @@ stdenv.mkDerivation (finalAttrs: {
#
# Method borrowed from
# https://github.com/msys2/MINGW-packages/commit/35830ab27e5ed35c2a8d486961ab607109f5af50
CFLAGS = lib.optionalString stdenv.hostPlatform.isMinGW "-D__USE_MINGW_ALARM -D_POSIX";
env = lib.optionalAttrs stdenv.hostPlatform.isMinGW {
CFLAGS = toString [
"-D__USE_MINGW_ALARM"
"-D_POSIX"
];
};
# This install error is caused by a very old libtool. We can't autoreconfHook this package,
# so this is the best we've got!