summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2019-07-25 13:22:03 -0700
committerGitHub <noreply@github.com>2019-07-25 13:22:03 -0700
commit70fd697efeab4d523257da2dfbb46be80ffa0dcd (patch)
tree0d7af902356657a17f7e4b2f73b46d37341f6af7
parentMerge pull request #64987 from luispedro/remove_rocksdb_gflags_dep (diff)
parentkitty: fix wayland support (EGL: Library not found) (diff)
downloadnixpkgs-70fd697efeab4d523257da2dfbb46be80ffa0dcd.tar.gz
Merge pull request #65358 from josephtheengineer/master
kitty: fix wayland support (EGL: Library not found error) on swaywm
-rw-r--r--pkgs/applications/misc/kitty/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/applications/misc/kitty/default.nix b/pkgs/applications/misc/kitty/default.nix
index 63e77ec0e672..0be9bc82187f 100644
--- a/pkgs/applications/misc/kitty/default.nix
+++ b/pkgs/applications/misc/kitty/default.nix
@@ -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 ''