From patchwork Mon Jan 18 09:16:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 26455 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 5EDF527BC15; Mon, 18 Jan 2021 09:18:20 +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 F323D27BC14 for ; Mon, 18 Jan 2021 09:18:18 +0000 (GMT) Received: from localhost ([::1]:59178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l1Qfx-0007JC-Vi for patchwork@mira.cbaines.net; Mon, 18 Jan 2021 04:18:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Qfi-0007Hk-PJ for guix-patches@gnu.org; Mon, 18 Jan 2021 04:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1Qfi-0003dI-Hs for guix-patches@gnu.org; Mon, 18 Jan 2021 04:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l1Qfi-0001lg-EP for guix-patches@gnu.org; Mon, 18 Jan 2021 04:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45954] Telegram-CLI Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Jan 2021 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45954 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 45954@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16109614336717 (code B ref -1); Mon, 18 Jan 2021 09:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jan 2021 09:17:13 +0000 Received: from localhost ([127.0.0.1]:46330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Qeu-0001kG-Lk for submit@debbugs.gnu.org; Mon, 18 Jan 2021 04:17:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:51842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1Qes-0001k5-3k for submit@debbugs.gnu.org; Mon, 18 Jan 2021 04:17:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Qer-0006cy-Ug for guix-patches@gnu.org; Mon, 18 Jan 2021 04:17:09 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1Qeo-0002zs-S3 for guix-patches@gnu.org; Mon, 18 Jan 2021 04:17:09 -0500 X-Originating-IP: 76.68.120.100 Received: from [192.168.5.10] (bras-vprn-toroon474rw-lp130-08-76-68-120-100.dsl.bell.ca [76.68.120.100]) (Authenticated sender: rg@raghavgururajan.name) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8F75A60014 for ; Mon, 18 Jan 2021 09:17:01 +0000 (UTC) From: Raghav Gururajan Message-ID: Date: Mon, 18 Jan 2021 04:16:59 -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 Received-SPF: pass client-ip=217.70.183.195; envelope-from=rg@raghavgururajan.name; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Hello Guix! Please find the attached patch-set to add telegram-cli and its dependencies into Guix. Regards, RG. From 656d1067c9c9c15fc69386071dd94c0b29040fd4 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 17 Jan 2021 12:16:34 -0500 Subject: [PATCH 16/18] gnu: Add tl-parser. * gnu/packages/telegram.scm (tl-parser): New variable. --- gnu/packages/telegram.scm | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 9759a11873..3c3aef4b9a 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -303,3 +303,52 @@ messenger.") license:lgpl2.1+ ;; Others license:gpl3+)))) + +(define-public tl-parser + (let ((commit "1933e76f8f4fb74311be723b432e4c56e3a5ec06") + (revision "1")) + (package + (name "tl-parser") + (version + (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/vysheng/tl-parser.git") + (commit commit))) + (file-name + (git-file-name name version)) + (sha256 + (base32 "13cwi247kajzpkbl86hnwmn1sn2h6rqndz6khajbqj0mlw9mv4hq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No target + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (include (string-append out "/include")) + (source (string-append (getenv "TEMP") "/source")) + (build (string-append (getenv "TEMP") "/build"))) + ;; Install executables. + (with-directory-excursion build + (for-each + (lambda (file) + (install-file file bin)) + (list + "tl-parser"))) + ;; Install headers. + (for-each + (lambda (file) + (install-file file (string-append include "/tl-parser"))) + (find-files source "\\.h$"))) + #t))))) + (synopsis "Parse tl scheme to tlo") + (description "TL-Parser is a tl scheme to tlo file parser. It was formely +a part of telegram-cli, but now being maintained separately.") + (home-page "https://github.com/vysheng/tl-parser") + (license license:gpl2+)))) -- 2.30.0