1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

dolphinEmu*: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-21 18:52:29 +01:00
parent c986f4f894
commit 9fe56e52dd
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 11 additions and 0 deletions

View file

@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
sha256 = "07mlfnh0hwvk6xarcg315x7z2j0qbg9g7cm040df9c8psiahc3g6";
};
postPatch = ''
substituteInPlace Source/Core/VideoBackends/OGL/RasterFont.cpp \
--replace " CHAR_WIDTH " " CHARWIDTH "
'';
cmakeFlags = ''
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include
-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include

View file

@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
fetchSubmodules = false;
};
postPatch = ''
for f in Source/Core/VideoBackends/{Software,OGL}/RasterFont.{h,cpp}; do
substituteInPlace "$f" --replace " CHAR_WIDTH " " CHARWIDTH "
done
'';
cmakeFlags = ''
-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include
-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include