From af2b34f170504d48e8ff5c78dfe9d174e4af19a8 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 19 Feb 2026 19:21:59 +0100 Subject: [PATCH] readline: move CFLAGS into env for structuredAttrs --- pkgs/development/libraries/readline/8.3.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/readline/8.3.nix b/pkgs/development/libraries/readline/8.3.nix index bc28262304fd..f32bf7c36a59 100644 --- a/pkgs/development/libraries/readline/8.3.nix +++ b/pkgs/development/libraries/readline/8.3.nix @@ -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!