1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #65358 from josephtheengineer/master

kitty: fix wayland support (EGL: Library not found error) on swaywm
This commit is contained in:
Graham Christensen 2019-07-25 13:22:03 -07:00 committed by GitHub
commit 70fd697efe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ''