mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-19 03:29:17 +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;
|
githubId = 32478597;
|
||||||
name = "Subin Kim";
|
name = "Subin Kim";
|
||||||
};
|
};
|
||||||
|
sugar700 = {
|
||||||
|
email = "sugar@sylveon.social";
|
||||||
|
github = "sugar700";
|
||||||
|
githubId = 168804988;
|
||||||
|
name = "sugar";
|
||||||
|
};
|
||||||
suhr = {
|
suhr = {
|
||||||
email = "suhr@i2pmail.org";
|
email = "suhr@i2pmail.org";
|
||||||
github = "suhr";
|
github = "suhr";
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
cmake,
|
cmake,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
gtkmm3,
|
gtkmm3,
|
||||||
|
libGL,
|
||||||
libX11,
|
libX11,
|
||||||
libXdmcp,
|
libXdmcp,
|
||||||
libXext,
|
libXext,
|
||||||
@ -87,6 +88,13 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
"--enable-avx2"
|
"--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 = ''
|
preConfigure = ''
|
||||||
cd ${if withGtk then "gtk" else "unix"}
|
cd ${if withGtk then "gtk" else "unix"}
|
||||||
'';
|
'';
|
||||||
@ -126,6 +134,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
AndersonTorres
|
AndersonTorres
|
||||||
qknight
|
qknight
|
||||||
thiagokokada
|
thiagokokada
|
||||||
|
sugar700
|
||||||
];
|
];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
broken = (withGtk && stdenv.isDarwin);
|
broken = (withGtk && stdenv.isDarwin);
|
||||||
|
Loading…
Reference in New Issue
Block a user