From e41ded712f0a0b2a885e2fd07defd2643fded446 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Tue, 21 Jan 2025 19:34:06 +0300 Subject: [PATCH] libui: use `g_strcasecmp` instead of `strcasecmp` --- pkgs/development/libraries/libui/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libui/default.nix b/pkgs/development/libraries/libui/default.nix index c3726929f9df..46be24a05630 100644 --- a/pkgs/development/libraries/libui/default.nix +++ b/pkgs/development/libraries/libui/default.nix @@ -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 '';