kitty: fix wayland support (EGL: Library not found)
This commit is contained in:
parent
2e869f71a7
commit
cec27ceabc
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, substituteAll, fetchFromGitHub, python3Packages, glfw, libunistring,
|
{ stdenv, substituteAll, fetchFromGitHub, python3Packages, glfw, libunistring,
|
||||||
harfbuzz, fontconfig, pkgconfig, ncurses, imagemagick, xsel,
|
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,
|
libxkbcommon, libXi, libXext, wayland-protocols, wayland,
|
||||||
which, dbus,
|
which, dbus,
|
||||||
Cocoa,
|
Cocoa,
|
||||||
@ -57,6 +57,8 @@ buildPythonApplication rec {
|
|||||||
optipng
|
optipng
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = stdenv.lib.optional stdenv.isLinux libGL;
|
||||||
|
|
||||||
outputs = [ "out" "terminfo" ];
|
outputs = [ "out" "terminfo" ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -70,6 +72,10 @@ buildPythonApplication rec {
|
|||||||
./png2icns.patch
|
./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 ''
|
buildPhase = if stdenv.isDarwin then ''
|
||||||
make app
|
make app
|
||||||
'' else ''
|
'' else ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user