diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-04-15 07:39:42 +0400 |
---|---|---|
committer | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-04-15 09:42:22 +0400 |
commit | 2be32fb551caaf9fc6418fa414a3d85fab0381c1 (patch) | |
tree | 31e950a07bcc8d93924beadeaafbd765a952224d /pkgs/applications/networking/instant-messengers/telegram | |
parent | 7cd37990742643121a7abb8307b03df069575a70 (diff) |
kotatogram-desktop: fix screensharing on Wayland
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/telegram')
-rw-r--r-- | pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix index 80b0a87f5e7d7..f49f5ef214ce6 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/tg_owt.nix @@ -25,7 +25,8 @@ , abseil-cpp , pipewire , mesa -, libglvnd +, libdrm +, libGL , Cocoa , AppKit , IOKit @@ -60,6 +61,17 @@ stdenv.mkDerivation { ./tg_owt-10.12-sdk.patch ]; + postPatch = lib.optionalString stdenv.isLinux '' + substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ + --replace '"libEGL.so.1"' '"${libGL}/lib/libEGL.so.1"' + substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ + --replace '"libGL.so.1"' '"${libGL}/lib/libGL.so.1"' + substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ + --replace '"libgbm.so.1"' '"${mesa}/lib/libgbm.so.1"' + substituteInPlace src/modules/desktop_capture/linux/egl_dmabuf.cc \ + --replace '"libdrm.so.2"' '"${libdrm}/lib/libdrm.so.2"' + ''; + outputs = [ "out" "dev" ]; nativeBuildInputs = [ pkg-config cmake ninja yasm ]; @@ -86,7 +98,8 @@ stdenv.mkDerivation { glib pipewire mesa - libglvnd + libdrm + libGL ] ++ lib.optionals stdenv.isDarwin [ Cocoa AppKit |