Merge pull request #333672 from sugar700/snes9x-wayland-support

snes9x: fix EGL loading in Wayland
This commit is contained in:
Thiago Kenji Okada 2024-08-10 15:59:17 +01:00 committed by GitHub
commit ff611d668b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -19724,6 +19724,12 @@
githubId = 32478597;
name = "Subin Kim";
};
sugar700 = {
email = "sugar@sylveon.social";
github = "sugar700";
githubId = 168804988;
name = "sugar";
};
suhr = {
email = "suhr@i2pmail.org";
github = "suhr";

View File

@ -5,6 +5,7 @@
cmake,
fetchFromGitHub,
gtkmm3,
libGL,
libX11,
libXdmcp,
libXext,
@ -87,6 +88,13 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-avx2"
];
postPatch = ''
substituteInPlace external/glad/src/egl.c \
--replace-fail libEGL.so.1 "${lib.getLib libGL}/lib/libEGL.so.1"
substituteInPlace external/glad/src/glx.c \
--replace-fail libGL.so.1 ${lib.getLib libGL}/lib/libGL.so.1
'';
preConfigure = ''
cd ${if withGtk then "gtk" else "unix"}
'';
@ -126,6 +134,7 @@ stdenv.mkDerivation (finalAttrs: {
AndersonTorres
qknight
thiagokokada
sugar700
];
platforms = lib.platforms.unix;
broken = (withGtk && stdenv.isDarwin);