libui: use g_strcasecmp instead of strcasecmp

This commit is contained in:
Pavel Sobolev
2025-01-21 19:34:06 +03:00
parent 490913d52b
commit e41ded712f

View File

@@ -30,6 +30,11 @@ stdenv.mkDerivation rec {
lib.optional stdenv.hostPlatform.isLinux gtk3
++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ];
postPatch = ''
substituteInPlace darwin/text.m unix/text.c \
--replace-fail "strcasecmp" "g_strcasecmp"
'';
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
sed -i 's/set(CMAKE_OSX_DEPLOYMENT_TARGET "10.8")//' ./CMakeLists.txt
'';