kitty: fix wayland support (EGL: Library not found)
This commit is contained in:
parent
2e869f71a7
commit
cec27ceabc
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, substituteAll, fetchFromGitHub, python3Packages, glfw, libunistring,
|
||||
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
|
||||
libstartup_notification, libX11, libXrandr, libXinerama, libXcursor,
|
||||
libstartup_notification, libGL, libX11, libXrandr, libXinerama, libXcursor,
|
||||
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
|
||||
which, dbus,
|
||||
Cocoa,
|
||||
|
@ -57,6 +57,8 @@ buildPythonApplication rec {
|
|||
optipng
|
||||
];
|
||||
|
||||
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
||||
|
||||
outputs = [ "out" "terminfo" ];
|
||||
|
||||
patches = [
|
||||
|
@ -70,6 +72,10 @@ buildPythonApplication rec {
|
|||
./png2icns.patch
|
||||
];
|
||||
|
||||
preConfigure = stdenv.lib.optional (!stdenv.isDarwin) ''
|
||||
substituteInPlace glfw/egl_context.c --replace "libEGL.so.1" "${stdenv.lib.getLib libGL}/lib/libEGL.so.1"
|
||||
'';
|
||||
|
||||
buildPhase = if stdenv.isDarwin then ''
|
||||
make app
|
||||
'' else ''
|
||||
|
|
Loading…
Reference in a new issue