me
/
guix
Archived
1
0
Fork 0

gnu: tdlib: Update to 1.7.10.

* gnu/packages/messaging.scm (tdlib): Update to 1.7.10.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
Andrew Tropin 2021-12-11 16:07:36 +01:00 committed by Nicolas Goaziou
parent ebff268bfc
commit 649ab3fe2d
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 40 additions and 39 deletions

View File

@ -2655,48 +2655,49 @@ replacement.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public tdlib (define-public tdlib
(package (let ((commit "34ba9b21f365b8d3bdc36808c2d665ca5cd128f6"))
(name "tdlib") (package
(version "1.7.0") (name "tdlib")
(source (origin (version "1.7.10")
(method git-fetch) (source
(uri (git-reference (origin
(url "https://github.com/tdlib/td") (method git-fetch)
(commit (string-append "v" version)))) (uri (git-reference
(sha256 (url "https://github.com/tdlib/td")
(base32 (commit commit)))
"0dfir57ljcn98mkg061c5642qb93wh2lm1n4nngpl3na9vvfk75i")) (sha256
(file-name (git-file-name name version)))) (base32 "06fbdh1jypz0p1rf6xbpias4kx7xplq9xjd9vz177vwj9icq3wki"))
(build-system cmake-build-system) (file-name (git-file-name name version))))
(arguments (build-system cmake-build-system)
`(#:tests? #t (arguments
#:configure-flags `(#:tests? #t
(list "-DCMAKE_BUILD_TYPE=Release" #:configure-flags
"-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work. (list "-DCMAKE_BUILD_TYPE=Release"
#:phases "-DTD_ENABLE_LTO=OFF") ; FIXME: Get LTO to work.
(modify-phases %standard-phases #:phases
(add-after 'unpack 'remove-failing-tests (modify-phases %standard-phases
(lambda _ (add-after 'unpack 'remove-failing-tests
(substitute* "test/CMakeLists.txt" (lambda _
;; The test cases are compiled into a distinct binary (substitute* "test/CMakeLists.txt"
;; which uses mtproto.cpp to attempt to connect to ;; The test cases are compiled into a distinct binary
;; a remote server. Removing this file from the sources ;; which uses mtproto.cpp to attempt to connect to
;; list disables those specific test cases. ;; a remote server. Removing this file from the sources
(("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") "")) ;; list disables those specific test cases.
#t))))) (("\\$\\{CMAKE_CURRENT_SOURCE_DIR\\}/mtproto.cpp") ""))
(native-inputs #t)))))
`(("gperf" ,gperf) (native-inputs
("openssl" ,openssl) `(("gperf" ,gperf)
("zlib" ,zlib) ("openssl" ,openssl)
("php" ,php) ("zlib" ,zlib)
("doxygen" ,doxygen))) ("php" ,php)
(synopsis "Cross-platform library for building Telegram clients") ("doxygen" ,doxygen)))
(description "Tdlib is a cross-platform library for creating custom (synopsis "Cross-platform library for building Telegram clients")
(description "Tdlib is a cross-platform library for creating custom
Telegram clients following the official Telegram API. It can be easily used Telegram clients following the official Telegram API. It can be easily used
from almost any programming language with a C-FFI and features first-class from almost any programming language with a C-FFI and features first-class
support for high performance Telegram Bot creation.") support for high performance Telegram Bot creation.")
(home-page "https://core.telegram.org/tdlib") (home-page "https://core.telegram.org/tdlib")
(license license:boost1.0))) (license license:boost1.0))))
(define-public purple-mm-sms (define-public purple-mm-sms
(package (package