diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/cstring-includes.patch b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/cstring-includes.patch new file mode 100644 index 000000000000..e334777ac14f --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/cstring-includes.patch @@ -0,0 +1,74 @@ +diff --git a/src/api/video/nv12_buffer.cc b/src/api/video/nv12_buffer.cc +index ca9dcd867..89d28f23c 100644 +--- a/src/api/video/nv12_buffer.cc ++++ b/src/api/video/nv12_buffer.cc +@@ -16,6 +16,8 @@ + #include "third_party/libyuv/include/libyuv/convert.h" + #include "third_party/libyuv/include/libyuv/scale.h" + ++#include ++ + namespace webrtc { + + namespace { +diff --git a/src/audio/utility/channel_mixer.cc b/src/audio/utility/channel_mixer.cc +index 0f1e66387..33b771b0c 100644 +--- a/src/audio/utility/channel_mixer.cc ++++ b/src/audio/utility/channel_mixer.cc +@@ -15,6 +15,8 @@ + #include "rtc_base/logging.h" + #include "rtc_base/numerics/safe_conversions.h" + ++#include ++ + namespace webrtc { + + ChannelMixer::ChannelMixer(ChannelLayout input_layout, +diff --git a/src/modules/audio_processing/aec3/alignment_mixer.cc b/src/modules/audio_processing/aec3/alignment_mixer.cc +index 7f076dea8..ffd7242b5 100644 +--- a/src/modules/audio_processing/aec3/alignment_mixer.cc ++++ b/src/modules/audio_processing/aec3/alignment_mixer.cc +@@ -10,6 +10,7 @@ + #include "modules/audio_processing/aec3/alignment_mixer.h" + + #include ++#include + + #include "rtc_base/checks.h" + +diff --git a/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc b/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc +index 7ef1a030e..5b9ab7137 100644 +--- a/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc ++++ b/src/modules/desktop_capture/linux/wayland/shared_screencast_stream.cc +@@ -18,6 +18,7 @@ + #include + #include + ++#include + #include + + #include "absl/memory/memory.h" +diff --git a/src/modules/video_coding/utility/ivf_file_reader.cc b/src/modules/video_coding/utility/ivf_file_reader.cc +index 4c08ca613..f82f2bfcb 100644 +--- a/src/modules/video_coding/utility/ivf_file_reader.cc ++++ b/src/modules/video_coding/utility/ivf_file_reader.cc +@@ -10,6 +10,7 @@ + + #include "modules/video_coding/utility/ivf_file_reader.h" + ++#include + #include + #include + +diff --git a/src/net/dcsctp/packet/bounded_byte_writer.h b/src/net/dcsctp/packet/bounded_byte_writer.h +index d754549e4..bf5e3ed42 100644 +--- a/src/net/dcsctp/packet/bounded_byte_writer.h ++++ b/src/net/dcsctp/packet/bounded_byte_writer.h +@@ -12,6 +12,7 @@ + #define NET_DCSCTP_PACKET_BOUNDED_BYTE_WRITER_H_ + + #include ++#include + + #include "api/array_view.h" + \ No newline at end of file diff --git a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix index f0bcaf973496..bbad5d6cb030 100644 --- a/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix +++ b/pkgs/applications/networking/instant-messengers/telegram/kotatogram-desktop/default.nix @@ -31,6 +31,9 @@ let }; patches = [ + # fix build with latest glibc + # upstream PR: https://github.com/desktop-app/tg_owt/pull/172 + ./cstring-includes.patch (fetchpatch { url = "https://webrtc.googlesource.com/src/+/e7d10047096880feb5e9846375f2da54aef91202%5E%21/?format=TEXT"; decode = "base64 -d";