readline: move CFLAGS into env for structuredAttrs
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user