From patchwork Fri Jan 8 00:44:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 26265 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id AA79227BC0F; Fri, 8 Jan 2021 00:47:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id E4D8227BC0E for ; Fri, 8 Jan 2021 00:47:14 +0000 (GMT) Received: from localhost ([::1]:41112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxfvt-0007L4-Tj for patchwork@mira.cbaines.net; Thu, 07 Jan 2021 19:47:14 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxftq-0006in-QU for guix-patches@gnu.org; Thu, 07 Jan 2021 19:45:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxftm-0003sg-Nu for guix-patches@gnu.org; Thu, 07 Jan 2021 19:45:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxftm-000120-LD for guix-patches@gnu.org; Thu, 07 Jan 2021 19:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45721] Telegram Desktop (v2) References: In-Reply-To: Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Jan 2021 00:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 45721@debbugs.gnu.org Received: via spool by 45721-submit@debbugs.gnu.org id=B45721.16100666853926 (code B ref 45721); Fri, 08 Jan 2021 00:45:02 +0000 Received: (at 45721) by debbugs.gnu.org; 8 Jan 2021 00:44:45 +0000 Received: from localhost ([127.0.0.1]:48935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxftJ-000111-Hr for submit@debbugs.gnu.org; Thu, 07 Jan 2021 19:44:45 -0500 Received: from relay13.mail.gandi.net ([217.70.178.233]:58845) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxftF-00010k-8s for 45721@debbugs.gnu.org; Thu, 07 Jan 2021 19:44:32 -0500 Received: from [192.168.2.72] (bras-vprn-ckvlon0125w-lp130-02-174-89-20-211.dsl.bell.ca [174.89.20.211]) (Authenticated sender: rg@raghavgururajan.name) by relay13.mail.gandi.net (Postfix) with ESMTPSA id DC4CD80006 for <45721@debbugs.gnu.org>; Fri, 8 Jan 2021 00:44:21 +0000 (UTC) From: Raghav Gururajan Message-ID: <9c5fedd3-635f-30ad-2d45-3c91df6d6a20@raghavgururajan.name> Date: Thu, 7 Jan 2021 19:44:20 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.6.0 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 5a1e7ad5024fe0c7f08b6411cadb5c2a910d56e8 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 7 Jan 2021 19:41:42 -0500 Subject: [PATCH 20/20] gnu: Add tdesktop. * gnu/packages/telegram.scm: New module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/telegram.scm (tdesktop): New variable. --- gnu/local.mk | 1 + gnu/packages/telegram.scm | 314 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 315 insertions(+) create mode 100644 gnu/packages/telegram.scm diff --git a/gnu/local.mk b/gnu/local.mk index bf07b820f2..4332f16a82 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -533,6 +533,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/task-management.scm \ %D%/packages/tbb.scm \ %D%/packages/tcl.scm \ + %D%/packages/telegram.scm \ %D%/packages/telephony.scm \ %D%/packages/terminals.scm \ %D%/packages/terraform.scm \ diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm new file mode 100644 index 0000000000..88299c33cb --- /dev/null +++ b/gnu/packages/telegram.scm @@ -0,0 +1,314 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2021 Raghav Gururajan +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages telegram) + #:use-module (gnu packages) + #:use-module (gnu packages aidc) + #:use-module (gnu packages audio) + #:use-module (gnu packages base) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) + #:use-module (gnu packages digest) + #:use-module (gnu packages fcitx) + #:use-module (gnu packages fcitx5) + #:use-module (gnu packages glib) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) + #:use-module (gnu packages language) + #:use-module (gnu packages libreoffice) + #:use-module (gnu packages linux) + #:use-module (gnu packages lxqt) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages python) + #:use-module (gnu packages qt) + #:use-module (gnu packages telephony) + #:use-module (gnu packages tls) + #:use-module (gnu packages video) + #:use-module (gnu packages xiph) + #:use-module (gnu packages xorg) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system cmake)) + +(define-public tdesktop + (package + (name "tdesktop") + (version "2.5.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/telegramdesktop/tdesktop.git") + (commit + (string-append "v" version)))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "0drirhkr9gnm1g03lcqmvap5ljlk859c29gbsm63hhsgv15dlw0y")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list + "-DTDESKTOP_API_ID=17349" + "-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb" + "-DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION=ON") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'copy-inputs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((to (getcwd)) + (cmake_helpers (assoc-ref inputs "cmake_helpers")) + (codegen (assoc-ref inputs "codegen")) + (lib_base (assoc-ref inputs "lib_base")) + (lib_crl (assoc-ref inputs "lib_crl")) + (lib_lottie (assoc-ref inputs "lib_lottie")) + (lib_qr (assoc-ref inputs "lib_qr")) + (lib_rlottie (assoc-ref inputs "lib_rlottie")) + (lib_rpl (assoc-ref inputs "lib_rpl")) + (lib_spellcheck (assoc-ref inputs "lib_spellcheck")) + (lib_storage (assoc-ref inputs "lib_storage")) + (lib_tl (assoc-ref inputs "lib_tl")) + (lib_ui (assoc-ref inputs "lib_ui")) + (lib_webrtc (assoc-ref inputs "lib_webrtc")) + (tgcalls (assoc-ref inputs "tgcalls"))) + (copy-recursively cmake_helpers (string-append to "/cmake")) + (copy-recursively codegen (string-append to "/Telegram/codegen")) + (copy-recursively lib_base (string-append to "/Telegram/lib_base")) + (copy-recursively lib_crl (string-append to "/Telegram/lib_crl")) + (copy-recursively lib_lottie (string-append to "/Telegram/lib_lottie")) + (copy-recursively lib_qr (string-append to "/Telegram/lib_qr")) + (copy-recursively lib_rlottie (string-append to "/Telegram/lib_rlottie")) + (copy-recursively lib_rpl (string-append to "/Telegram/lib_rpl")) + (copy-recursively lib_spellcheck (string-append to "/Telegram/lib_spellcheck")) + (copy-recursively lib_storage (string-append to "/Telegram/lib_storage")) + (copy-recursively lib_tl (string-append to "/Telegram/lib_tl")) + (copy-recursively lib_ui (string-append to "/Telegram/lib_ui")) + (copy-recursively lib_webrtc (string-append to "/Telegram/lib_webrtc")) + (copy-recursively tgcalls (string-append to "/Telegram/ThirdParty/tgcalls"))) + #t)) + (add-before 'configure 'patch-cxx-flags + (lambda _ + (substitute* "cmake/options_linux.cmake" + (("class-memaccess") + "all")) + #t))))) + (native-inputs + `(("cmake_helpers" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/cmake_helpers.git") + (commit "a81345a"))) + (file-name + (git-file-name "cmake_helpers" version)) + (sha256 + (base32 "0s5hxip68dmkaspjq6j30wx1r5v4prnrjza79hdbznz6i57a2248")))) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gtk+:bin" ,gtk+ "bin") + ("pkg-config" ,pkg-config) + ("python" ,python-wrapper) + ("qttools" ,qttools))) + (inputs + `(("alsa" ,alsa-lib) + ("catch" ,catch-framework2) + ("codegen" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/codegen.git") + (commit "127968d"))) + (file-name + (git-file-name "codegen" version)) + (sha256 + (base32 "036hzjrsk134ky62192nra43rsln5kh5gz20q1920s922661zky2")))) + ("expected" ,libexpected) + ("fcitx-qt5" ,fcitx-qt5) + ("fcitx5-qt" ,fcitx5-qt) + ("ffmpeg" ,ffmpeg) + ("glib" ,glib) + ("gsl" ,gsl) + ("gtk+" ,gtk+) + ("hime" ,hime) + ("hunspell" ,hunspell) + ("iconv" ,libiconv) + ("lib_base" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_base.git") + (commit "81df0d0"))) + (file-name + (git-file-name "lib_base" version)) + (sha256 + (base32 "0ikddprjnjvg0ic8jr2886xq0f18syp587q6z2kci9xmdnvjl217")))) + ("lib_crl" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_crl.git") + (commit "16150bf"))) + (file-name + (git-file-name "lib_crl" version)) + (sha256 + (base32 "0qhagdr26aqb9w7wnchcmk1j7ln28x3wbkkkm06b8h0mybksbj7q")))) + ("lib_lottie" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_lottie.git") + (commit "fb40f37"))) + (file-name + (git-file-name "lib_lottie" version)) + (sha256 + (base32 "1vq0mqxcrrv7akcqk9cl4mm61zw6dcfmy8adl0pcp49kynm64saw")))) + ("lib_qr" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_qr.git") + (commit "92ce41a"))) + (file-name + (git-file-name "lib_qr" version)) + (sha256 + (base32 "182939nv7xs9b3bgah3gl5y9hx5r59mabd2jw3z6717vc96qi2pj")))) + ("lib_rlottie" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_rlottie.git") + (commit "0671bf7"))) + (file-name + (git-file-name "lib_rlottie" version)) + (sha256 + (base32 "05qnza7j15356s8jq16pkbyp4zr586lssmd86lz5jq23lcb3raxv")))) + ("lib_rpl" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_rpl.git") + (commit "e1b9639"))) + (file-name + (git-file-name "lib_rpl" version)) + (sha256 + (base32 "1wvqazljd2kq1fxlj250jhjrig529499bym9p81dx33kh1l9dgss")))) + ("lib_spellcheck" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_spellcheck.git") + (commit "1b540b3"))) + (file-name + (git-file-name "lib_spellcheck" version)) + (sha256 + (base32 "0a7042h5zrdvgs7v153ral2dh1zj84di5yjcmgcry5k4s1im9di7")))) + ("lib_storage" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_storage.git") + (commit "cbe5172"))) + (file-name + (git-file-name "lib_storage" version)) + (sha256 + (base32 "045l5xsyagyz17gbhmmvl2miss4nb92p0dmza7yfs9pkg9gs0f87")))) + ("lib_tl" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_tl.git") + (commit "404c83d"))) + (file-name + (git-file-name "lib_tl" version)) + (sha256 + (base32 "1k34nkvvcjqw5q81n1qmklid60cvzjk4lmn9qjimk437m6wbii7f")))) + ("lib_ui" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_ui.git") + (commit "1e27992"))) + (file-name + (git-file-name "lib_ui" version)) + (sha256 + (base32 "0kd4njcvic2700f00qn25vn3b80vsd2flsm3pi2synnldkiy8lcw")))) + ("lib_webrtc" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/desktop-app/lib_webrtc.git") + (commit "4bc51d6"))) + (file-name + (git-file-name "lib_webrtc" version)) + (sha256 + (base32 "06hpyq4qglrj3cb1xg8ghlmzm9ra8f5n6vm7hcy67n2wk8sy4cal")))) + ("libdbusmenu-qt" ,libdbusmenu-qt) + ("libjpeg" ,libjpeg-turbo) + ("libtgvoip" ,libtgvoip) + ("lz4" ,lz4) + ("materialdecoration" ,materialdecoration) + ("minizip" ,minizip) + ("nimf" ,nimf) + ("openal" ,openal) + ("openssl" ,openssl) + ("opus" ,opus) + ("pulseaudio" ,pulseaudio) + ("qrcodegen" ,qrcodegen-cpp) + ("qt" ,qtbase) + ("qt5ct" ,qt5ct) + ("qtwayland" ,qtwayland) + ("range-v3" ,range-v3) + ("rlottie" ,rlottie) + ("tgcalls" + ,(origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/TelegramMessenger/tgcalls.git") + (commit "178983f"))) + (file-name + (git-file-name "tgcalls" version)) + (sha256 + (base32 "1xad65c9m6mj6zdj08flafvh8xjkd7xi9r1agcyc64y69lr427d0")))) + ("x11" ,libx11) + ("xcb" ,libxcb) + ("xcb-keysyms" ,xcb-util-keysyms) + ("xxhash" ,xxhash) + ("zlib" ,zlib))) + (synopsis "Telegram Desktop") + (description "Tdesktop is the official desktop application for telegram +messenger.") + (home-page "https://desktop.telegram.org/") + (license license:gpl3+))) -- 2.29.2