sdcv: Fix build with glib 2.82

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4016

Changed files
+7
pkgs
applications
misc
+7
pkgs/applications/misc/sdcv/default.nix
···
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ glib gettext readline ];
+
postPatch = ''
+
# https://github.com/Dushistov/sdcv/pull/104
+
substituteInPlace src/stardict_lib.cpp --replace-fail \
+
"gchar *nextchar = g_utf8_next_char(sWord)" \
+
"gchar *nextchar = const_cast<gchar*>(g_utf8_next_char(sWord))"
+
'';
+
preInstall = ''
mkdir locale
'';