@@ -44,6 +44,7 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages lxqt)
#:use-module (gnu packages lua)
+ #:use-module (gnu packages networking)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages protobuf)
@@ -96,7 +97,7 @@
'( ;; Custom forks which are incompatible with the ones in Guix.
"abseil-cpp" "libsrtp" "openh264" "rnnoise"
;; Not available in Guix.
- "pffft" "usrsctp"
+ "pffft"
;; Has cmake support files for libvpx input.
"libvpx")))
(with-directory-excursion "src/third_party"
@@ -124,9 +125,22 @@
"/src/third_party/libyuv")))
(copy-recursively libvpx-from libvpx-to)
(copy-recursively libyuv-from libyuv-to))
- #t)))))
+ #t))
+ (add-after 'copy-inputs 'patch-cmake
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "CMakeLists.txt"
+ ;; Disable building of usrsctp as thirdparty,
+ ;; as we removed its source.
+ (("include\\(cmake/libusrsctp.cmake\\)") "")
+ ;; Link to usrsctp that is provided as input,
+ ;; instead of linking to usrsctp that is supossedly
+ ;; built as thirdparty.
+ (("tg_owt::libusrsctp") "usrsctp")
+ ;; Disable exporting of usrsctp,
+ ;; that is supossedly built as thirdparty.
+ (("[ \t]*libusrsctp") "")))))))
(native-inputs
- `(("gcc" ,gcc-9) ; keep in line with telegram-desktop
+ `(("gcc" ,gcc-9) ; keep in line with telegram-desktop
("perl" ,perl)
("pkg-config" ,pkg-config)
("python" ,python-wrapper)
@@ -161,6 +175,7 @@
("opus" ,opus)
("protobuf" ,protobuf)
("pulseaudio" ,pulseaudio)
+ ("usrsctp" ,usrsctp)
("x11" ,libx11)
("xext" ,libxext)
("xtst" ,libxtst)))