From patchwork Sat Feb 15 21:30:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Nicol=C3=B2_Balzarotti?= X-Patchwork-Id: 20261 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 8CFFE27BBEA; Sat, 15 Feb 2020 21:31:29 +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.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, 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 ESMTP id 1EDF01796A for ; Sat, 15 Feb 2020 21:31:29 +0000 (GMT) Received: from localhost ([::1]:54884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3528-00045h-KM for patchwork@mira.cbaines.net; Sat, 15 Feb 2020 16:31:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51536) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j351n-00043e-KF for guix-patches@gnu.org; Sat, 15 Feb 2020 16:31:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j351i-0006B4-Bd for guix-patches@gnu.org; Sat, 15 Feb 2020 16:31:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58726) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j351i-0006Av-8f for guix-patches@gnu.org; Sat, 15 Feb 2020 16:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j351i-0005lL-61 for guix-patches@gnu.org; Sat, 15 Feb 2020 16:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39620] [PATCH 1/4] gnu: Add mtxclient. Resent-From: nixo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Feb 2020 21:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39620 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39619@debbugs.gnu.org, 39620@debbugs.gnu.org Cc: nixo X-Debbugs-Original-To: 39619@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158180225622091 (code B ref -1); Sat, 15 Feb 2020 21:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Feb 2020 21:30:56 +0000 Received: from localhost ([127.0.0.1]:36455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j351c-0005kF-Ah for submit@debbugs.gnu.org; Sat, 15 Feb 2020 16:30:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:59408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j351b-0005k2-7P for submit@debbugs.gnu.org; Sat, 15 Feb 2020 16:30:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51449) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j351Z-0003y1-Rj for guix-patches@gnu.org; Sat, 15 Feb 2020 16:30:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j351Y-0005r2-M7 for guix-patches@gnu.org; Sat, 15 Feb 2020 16:30:53 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:35778) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j351Y-0005oe-Fm for guix-patches@gnu.org; Sat, 15 Feb 2020 16:30:52 -0500 Received: by mail-wm1-x342.google.com with SMTP id b17so14551213wmb.0 for ; Sat, 15 Feb 2020 13:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1HfDF1NBs223IrvraZpAUPtVsCZ4KluCkhOluBltVb0=; b=clOjN7HwiIA7fUbb8egIFveXbMHNker+ccb8HI8gBbu0hnDQERTYXSku6U3zcqgSXR kKP0hbwhl1I4kJ1qkejDpoKPdWf4dU+mgltRtsevSUW659MHHpQNDmLX9PuZnfzIMz6u IgyaKsp+6NeuHrgMH5oUA4X09oktW+sC8xhEgMI6yygGiAWiD/ljGu1W9eNPP2jzf0Dh RtccN9w28B5UGGWBptmaM0kd2gzRYgB9fgd5KMYjJd8++XElHb9tWkU1BQGiMg5WShA1 Tp3/SI5AU+dD5VzQaJlJtGbdUVMdBSvwQSTskKC0X3c2Ld+PBSQRMqUxdemENeVpA3LX qUNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1HfDF1NBs223IrvraZpAUPtVsCZ4KluCkhOluBltVb0=; b=Kaz4nOlbqn887zK6BIqk2pCd/wqwaoeATjFqrKj4EEoiyGZi+dtKWLrU4T5LPTEdep QboyMDN/KVin2qBL6+p2b4nofe6FuS7GPP0d4GyI2nxSaf/WbWwL+NmO6gsnjKKvufsf ExNM5S+vyOtgnO/EW6Joz/1woyP6/GW7n/mHybxqnNjOzAHy6RHSNX97Qob9NXtFwIUY wmJjrmd5+1zQMVsZoiqdL+DZYi0rutxy1+fHUsYTwCCgCgSLfDJOWFmH3wWL3uh1H/i3 awIumR9xBopgGlt3MLhDMo8R7jn3wo549xIZXcWRuZWTI83lPZ64H5t+eyoDtchsZ1da 3KSw== X-Gm-Message-State: APjAAAWIvet0Uyi+VpIRE13pjA6lEjzL/sEY7AywDWN6pr9sEECZDS2U Q9IiLCiYQHuJ/d9mqzXYzw4= X-Google-Smtp-Source: APXvYqyeRpNsN3CwKUlcv83YeX5nZ+ZmOgzG/3dtAoF/Jzm0tC+MiBmYQY18QQXH0EatZOddebNM2Q== X-Received: by 2002:a7b:c7d2:: with SMTP id z18mr12385710wmk.160.1581802251216; Sat, 15 Feb 2020 13:30:51 -0800 (PST) Received: from localhost.localdomain ([95.232.154.110]) by smtp.gmail.com with ESMTPSA id f62sm13758809wmf.36.2020.02.15.13.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Feb 2020 13:30:50 -0800 (PST) From: nixo X-Google-Original-From: nixo Date: Sat, 15 Feb 2020 22:30:27 +0100 Message-Id: <20200215213030.21121-1-nicolo@nixo.xyz> X-Mailer: git-send-email 2.25.0 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 * gnu/packages/messaging.scm (mtxclient): New variable. --- gnu/packages/messaging.scm | 58 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 120daacdc6..2592d34dc2 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -48,6 +48,7 @@ #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages compression) + #:use-module (gnu packages cpp) #:use-module (gnu packages crypto) #:use-module (gnu packages curl) #:use-module (gnu packages cyrus-sasl) @@ -68,6 +69,7 @@ #:use-module (gnu packages libcanberra) #:use-module (gnu packages libidn) #:use-module (gnu packages linux) + #:use-module (gnu packages logging) #:use-module (gnu packages lua) #:use-module (gnu packages man) #:use-module (gnu packages ncurses) @@ -1787,6 +1789,58 @@ implementation. Quaternion and libqmatrixclient together form the QMatrixClient project.") (license license:lgpl2.1+))) +(define-public mtxclient + (package + (name "mtxclient") + (version "0.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Nheko-Reborn/mtxclient.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0pycznrvj57ff6gbwfn1xj943d2dr4vadl79hii1z16gn0nzxpmj")))) + (arguments + `(#:configure-flags + (list + ;; Disable example binaries (not installed) + "-DBUILD_LIB_EXAMPLES=OFF") + #:phases + (modify-phases %standard-phases + (add-before 'configure 'disable-network-tests + (lambda _ + (substitute* "CMakeLists.txt" + (("add_test\\(BasicConnectivity") "# add_test") + (("add_test\\(ClientAPI") "# add_test") + (("add_test\\(MediaAPI") "# add_test") + (("add_test\\(Encryption") "# add_test")) + #t)) + (add-before 'configure 'set-home + (lambda _ + ;; Tries to create package registry file + ;; So, set HOME. + (setenv "HOME" "/tmp") + #t))))) + (inputs + `(("boost" ,boost) + ("libolm" ,libolm) + ("libsodium" ,libsodium) + ("openssl" ,openssl) + ("nlohmann-json-cpp" ,nlohmann-json-cpp) + ("spdlog" ,spdlog) + ("zlib" ,zlib))) + (native-inputs + `(("googletest" ,googletest) + ("pkg-config" ,pkg-config))) + (build-system cmake-build-system) + (home-page "https://github.com/Nheko-Reborn/mtxclient") + (synopsis "Client API library for the Matrix protocol") + (description "@code{mtxclient} is a C++ library that implements client API +for the Matrix protocol. It's built on to of @code{Boost.Asio}.") + (license license:expat))) + (define-public quaternion (package (name "quaternion") @@ -1795,8 +1849,8 @@ QMatrixClient project.") (origin (method git-fetch) (uri (git-reference - (url "https://github.com/QMatrixClient/Quaternion") - (commit version))) + (url "https://github.com/QMatrixClient/Quaternion") + (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0gpv6b3nn3lsyym8809kiqkpdszfasldqjpk5s542zyn41gdlql4"))))