[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/15: gnu: Add libtgvoip-for-telegram-desktop.
From: |
guix-commits |
Subject: |
14/15: gnu: Add libtgvoip-for-telegram-desktop. |
Date: |
Sun, 31 Jan 2021 03:35:38 -0500 (EST) |
leoprikler pushed a commit to branch master
in repository guix.
commit 27fa48443aa684bcb8f7604c4bae80c436052dcc
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Wed Jan 27 18:57:44 2021 -0500
gnu: Add libtgvoip-for-telegram-desktop.
* gnu/packages/telegram.scm (libtgvoip-for-telegram-desktop): New variable.
Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
---
gnu/packages/telegram.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm
index 18fcc05..9de9a84 100644
--- a/gnu/packages/telegram.scm
+++ b/gnu/packages/telegram.scm
@@ -20,6 +20,7 @@
#:use-module (gnu packages)
#:use-module (gnu packages animation)
#:use-module (gnu packages assembly)
+ #:use-module (gnu packages autotools)
#:use-module (gnu packages check)
#:use-module (gnu packages image)
#:use-module (gnu packages linux)
@@ -27,6 +28,7 @@
#:use-module (gnu packages protobuf)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
+ #:use-module (gnu packages telephony)
#:use-module (gnu packages tls)
#:use-module (gnu packages video)
#:use-module (gnu packages xiph)
@@ -34,6 +36,7 @@
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system gnu)
#:use-module (guix build-system meson))
(define-public webrtc-for-telegram-desktop
@@ -179,3 +182,47 @@ Telegram project, for its use in telegram desktop client.")
(("werror=true")
"werror=false"))
#t)))))))))
+
+(define-public libtgvoip-for-telegram-desktop
+ (let ((commit "37d98e984fd6fa389262307db826d52ab86c8241")
+ (revision "87"))
+ (hidden-package
+ (package
+ (inherit libtgvoip)
+ (version
+ (git-version "2.4.4" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/telegramdesktop/libtgvoip.git")
+ (commit commit)))
+ (file-name
+ (git-file-name "libtgvoip-for-telegram-desktop" version))
+ (sha256
+ (base32 "13dzvyq8p20nlhjihv18aj6y97czk07qdl0k6v81vp6mbwcldg7h"))))
+ (arguments
+ `(#:configure-flags
+ (list
+ "--disable-static"
+ "--disable-dsp" ; FIXME
+ "--enable-audio-callback"
+ "--with-alsa"
+ "--with-pulse")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-linkers
+ (lambda _
+ (substitute* "Makefile.am"
+ (("\\$\\(CRYPTO_LIBS\\) \\$\\(OPUS_LIBS\\)")
+ "$(CRYPTO_LIBS) $(OPUS_LIBS) $(ALSA_LIBS) $(PULSE_LIBS)"))
+ (substitute* "tgvoip.pc.in"
+ (("libcrypto opus")
+ "libcrypto opus alsa libpulse"))
+ #t)))))
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)))))))
- 06/15: gnu: Add nimf., (continued)
- 06/15: gnu: Add nimf., guix-commits, 2021/01/31
- 07/15: gnu: Add cmake-shared., guix-commits, 2021/01/31
- 09/15: gnu: Add range-v3., guix-commits, 2021/01/31
- 03/15: gnu: libappindicator: Propagate some inputs as per .pc file., guix-commits, 2021/01/31
- 02/15: gnu: Add fcitx-qt5., guix-commits, 2021/01/31
- 04/15: gnu: Add libchewing., guix-commits, 2021/01/31
- 05/15: gnu: Add hime., guix-commits, 2021/01/31
- 08/15: gnu: Add materialdecoration., guix-commits, 2021/01/31
- 11/15: gnu: Add qt5ct., guix-commits, 2021/01/31
- 13/15: gnu: Add rlottie-for-telegram-desktop., guix-commits, 2021/01/31
- 14/15: gnu: Add libtgvoip-for-telegram-desktop.,
guix-commits <=
- 10/15: gnu: Add rlottie., guix-commits, 2021/01/31
- 12/15: gnu: Add webrtc-for-telegram-desktop., guix-commits, 2021/01/31
- 15/15: gnu: Add telegram-desktop., guix-commits, 2021/01/31