mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-17 10:37:45 +03:00
Merge pull request #333672 from sugar700/snes9x-wayland-support
snes9x: fix EGL loading in Wayland
This commit is contained in:
commit
ff611d668b
@ -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";
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user