Skip to content

Commit

Permalink
libui: use g_strcasecmp instead of strcasecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
paveloom committed Jan 30, 2025
1 parent 490913d commit e41ded7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/libui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit e41ded7

Please sign in to comment.