mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
sdcv: Fix build with glib 2.82
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4016
This commit is contained in:
parent
ea193dfa5d
commit
ddeb47d901
@ -15,6 +15,13 @@ stdenv.mkDerivation rec {
|
||||
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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user