readline: move CFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-19 19:21:59 +01:00
parent d90914bdd0
commit af2b34f170
+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!