summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2020-08-08 14:39:48 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2020-08-08 16:25:23 +0300
commitc75490c26bc8e89cff0e808391d2c08843218c0c (patch)
treeabed303231387d267cd8e3b91785413a5ffc1ce8
parentguix: Add homer. (diff)
downloadguix-wigust-telegram.tar.gz
guix: Add telegram.telegram
-rw-r--r--guix/wigust/packages/telegram.scm119
1 files changed, 119 insertions, 0 deletions
diff --git a/guix/wigust/packages/telegram.scm b/guix/wigust/packages/telegram.scm
new file mode 100644
index 0000000..744ea53
--- /dev/null
+++ b/guix/wigust/packages/telegram.scm
@@ -0,0 +1,119 @@
+;; Packaged by nefix on IRC #guix https://dpaste.com/5WRVAMX9X.txt
+
+(define-module (wigust packages telegram)
+ #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix git-download)
+ #:use-module (guix build-system qt)
+ #:use-module (guix build-system cmake)
+ #:use-module (gnu packages qt)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages lxqt)
+ #:use-module (gnu packages video)
+ #:use-module (gnu packages libreoffice)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages audio)
+ #:use-module (gnu packages python)
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages linux)
+ #:use-module (gnu packages pulseaudio)
+ #:use-module (gnu packages gtk)
+ #:use-module (gnu packages xiph)
+ #:use-module (gnu packages digest)
+ #:use-module (gnu packages gcc))
+
+(define-public tl-expected
+ (let ((commit "1d9c5d8c0da84b8ddc54bd3d90d632eec95c1f13")
+ (revision "1"))
+ (package
+ (name "tl-expected")
+ (version (string-append "0.0.0-" revision "." (string-take commit 7)))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/TartanLlama/expected")
+ (commit commit)
+ (recursive? #t)))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32 "0rzfn9yyg70zwpxbmv22qy0015baymi2rdd65ixmcb31fgnap68i"))))
+ (arguments
+ `(#:configure-flags
+ (list
+ "-DEXPECTED_BUILD_TESTS=OFF")))
+ (build-system cmake-build-system)
+ (synopsis "C++11/14/17 std::expected with functional-style extensions")
+ (description "Single header implementation of std::expected with functional-style extensions.")
+ (home-page "https://github.com/TartanLlama/expected")
+ (license license:expat))))
+
+(define-public range-v3
+ (package
+ (name "range-v3")
+ (version "0.10.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ericniebler/range-v3")
+ (commit version)))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32 "1h9h5j7pdi0afpip9ncq76h1xjhvb8bnm585q17afz2l4fydy8qj"))))
+ (build-system cmake-build-system)
+ (synopsis "Range library for C++14/17/20, basis for C++20's std::ranges")
+ (description "Range library for C++14/17/20. This code was the basis of a formal proposal to add range support to the C++ standard library. That proposal evolved through a Technical Specification, and finally into P0896R4 \"The One Ranges Proposal\" which was merged into the C++20 working drafts in November 2018.")
+ (home-page "https://github.com/ericniebler/range-v3")
+ (license license:expat)))
+
+
+(define-public telegram-desktop
+ (package
+ (name "telegram-desktop")
+ (version "2.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/telegramdesktop/tdesktop/releases/download/v"
+ version "/tdesktop-" version "-full.tar.gz"))
+ (sha256
+ (base32 "1chikb02df4qqnickcmx96lcx481b14kmksjsp7h94g0d223ypq0"))))
+ (arguments
+ `(#:configure-flags
+ (list
+ "-Ddisable_autoupdate=ON"
+ "-DTDESKTOP_API_TEST=ON"
+ "-DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF"
+ "-DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF"
+ "-DDESKTOP_APP_USE_PACKAGED_GSL=OFF"
+ "-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON"
+ "-DTDESKTOP_USE_PACKAGED_TGVOIP=OFF")))
+ (build-system qt-build-system)
+ (inputs
+ `(("qtbase" ,qtbase)
+ ("qtwayland" ,qtwayland)
+ ("qtimageformats" ,qtimageformats)
+ ("libdbusmenu-qt" ,libdbusmenu-qt)
+ ("ffmpeg" ,ffmpeg)
+ ("hunspell" ,hunspell)
+ ("lz4" ,lz4)
+ ("minizip" ,minizip)
+ ("openal" ,openal)
+ ("openssl" ,openssl)
+ ("alsa-lib" ,alsa-lib)
+ ("pulseaudio" ,pulseaudio)
+ ("gtk+" ,gtk+)
+ ("opus" ,opus)
+ ("xxhash" ,xxhash)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("tl-expected" ,tl-expected)
+ ("range-v3" ,range-v3)
+ ("python" ,python)
+ ("gcc" ,gcc-9)))
+ (home-page "https://desktop.telegram.org")
+ (synopsis "Telegram Desktop messaging app")
+ (description "Desktop client for the Telegram messenger, based on the Telegram API and the MTProto secure protocol.")
+ (license license:gpl3)))