From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 09:22:50 2021 Received: (at submit) by debbugs.gnu.org; 3 Jun 2021 13:22:50 +0000 Received: from localhost ([127.0.0.1]:42890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lonJ6-0003sV-Hi for submit@debbugs.gnu.org; Thu, 03 Jun 2021 09:22:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:58466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lonJ4-0003sN-Eo for submit@debbugs.gnu.org; Thu, 03 Jun 2021 09:22:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lonJ4-0003fu-8v for guix-patches@gnu.org; Thu, 03 Jun 2021 09:22:42 -0400 Received: from cyberdimension.org ([80.67.179.20]:38438 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lonJ1-0006Tr-K5 for guix-patches@gnu.org; Thu, 03 Jun 2021 09:22:41 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id ceddf276; Thu, 3 Jun 2021 13:20:04 +0000 (UTC) Received: from primarylaptop.localdomain (localhost.localdomain [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id da0bc744; Thu, 3 Jun 2021 13:20:04 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: guix-patches@gnu.org Subject: [PATCH] gnu: Add matterbridge. Date: Thu, 3 Jun 2021 15:22:31 +0200 Message-Id: <20210603132231.10168-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/messaging.scm (matterbridge): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/messaging.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index b326b68952..8554f9230a 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Raghav Gururajan ;;; Copyright © 2020, 2021 Robert Karszniewicz ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2021 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -123,6 +124,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) + #:use-module (guix build-system go) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -2967,4 +2969,30 @@ designed for experienced users.") (description "This package contains Zulip's official terminal client.") (license license:asl2.0))) +(define-public matterbridge + (package + (name "matterbridge") + (version "1.22.2") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://github.com/42wim/matterbridge/archive/v" version ".tar.gz")) + (sha256 + (base32 + "1p3mkfzv4xwm7vz8ja7qsa99qwxb9s61hnjjv65dkkjivlsif5hk")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/42wim/matterbridge" + #:unpack-path "github.com/42wim/matterbridge")) + (synopsis "Bridge together channels from various messaging networks and protocols") + (description "Relays messages between different channels from various +messaging networks and protocols. So far it supports mattermost, IRC, gitter, +xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, +keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API. +Mattermost is not required.") + (home-page "https://github.com/42wim/matterbridge") + (license license:asl2.0))) + ;;; messaging.scm ends here -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 08:07:59 2021 Received: (at 48810) by debbugs.gnu.org; 4 Jun 2021 12:07:59 +0000 Received: from localhost ([127.0.0.1]:45698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8cJ-00060z-GR for submit@debbugs.gnu.org; Fri, 04 Jun 2021 08:07:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8cI-00060k-1m for 48810@debbugs.gnu.org; Fri, 04 Jun 2021 08:07:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58998) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp8cC-0007fk-E3; Fri, 04 Jun 2021 08:07:52 -0400 Received: from [2a01:e0a:19b:d9a0:45b5:a14a:5c75:5737] (port=36496 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp8cC-0006xs-5W; Fri, 04 Jun 2021 08:07:52 -0400 From: Mathieu Othacehe To: Denis 'GNUtoo' Carikli Subject: Re: bug#48810: [PATCH] gnu: Add matterbridge. References: <20210603132231.10168-1-GNUtoo@cyberdimension.org> Date: Fri, 04 Jun 2021 14:07:50 +0200 In-Reply-To: <20210603132231.10168-1-GNUtoo@cyberdimension.org> (Denis Carikli's message of "Thu, 3 Jun 2021 15:22:31 +0200") Message-ID: <87im2testl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48810 Cc: 48810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello, The linter reports two problems: --8<---------------cut here---------------start------------->8--- gnu/packages/messaging.scm:2977:5: matterbridge@1.22.2: the source file name should contain the package name gnu/packages/messaging.scm:2977:5: matterbridge@1.22.2: the source URI should not be an autogenerated tarball --8<---------------cut here---------------end--------------->8--- which means that you should use: > + (method url-fetch) git-fetch here, > + (sha256 > + (base32 > + "1p3mkfzv4xwm7vz8ja7qsa99qwxb9s61hnjjv65dkkjivlsif5hk")))) and introduce something like: --8<---------------cut here---------------start------------->8--- (file-name (git-file-name name version)) --8<---------------cut here---------------end--------------->8--- here. Could you please send an updated patch? Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 12:11:46 2021 Received: (at 48810) by debbugs.gnu.org; 4 Jun 2021 16:11:46 +0000 Received: from localhost ([127.0.0.1]:47790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpCQE-0001of-ER for submit@debbugs.gnu.org; Fri, 04 Jun 2021 12:11:46 -0400 Received: from cyberdimension.org ([80.67.179.20]:44460 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpCQA-0001oJ-Te for 48810@debbugs.gnu.org; Fri, 04 Jun 2021 12:11:45 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id a8de8fda; Fri, 4 Jun 2021 16:09:01 +0000 (UTC) Received: from primarylaptop.localdomain (localhost.localdomain [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 4b7aff5c; Fri, 4 Jun 2021 16:09:01 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: othacehe@gnu.org Subject: [PATCH v2] gnu: Add matterbridge. Date: Fri, 4 Jun 2021 18:11:41 +0200 Message-Id: <20210604161141.8929-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <87im2testl.fsf@gnu.org> References: <87im2testl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48810 Cc: 48810@debbugs.gnu.org, Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: othacehe@gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/messaging.scm (matterbridge): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/messaging.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 96cbf95fe9..021888cfae 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2020 Raghav Gururajan ;;; Copyright © 2020, 2021 Robert Karszniewicz ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2021 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -123,6 +124,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (guix build-system cmake) + #:use-module (guix build-system go) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system meson) @@ -2967,4 +2969,31 @@ designed for experienced users.") (description "This package contains Zulip's official terminal client.") (license license:asl2.0))) +(define-public matterbridge + (package + (name "matterbridge") + (version "1.22.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/42wim/matterbridge") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07rgdc4v043fhzsalmlhickqizk6xjlpjkzn6l5v9ryp5gmv580z")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/42wim/matterbridge" + #:unpack-path "github.com/42wim/matterbridge")) + (synopsis "Bridge together channels from various messaging networks and protocols") + (description "Relays messages between different channels from various +messaging networks and protocols. So far it supports mattermost, IRC, gitter, +xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, +keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API. +Mattermost is not required.") + (home-page "https://github.com/42wim/matterbridge") + (license license:asl2.0))) + ;;; messaging.scm ends here -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 04 12:16:16 2021 Received: (at 48810) by debbugs.gnu.org; 4 Jun 2021 16:16:17 +0000 Received: from localhost ([127.0.0.1]:47794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpCUX-000255-1t for submit@debbugs.gnu.org; Fri, 04 Jun 2021 12:16:16 -0400 Received: from cyberdimension.org ([80.67.179.20]:44462 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpCUR-00024a-Ci for 48810@debbugs.gnu.org; Fri, 04 Jun 2021 12:16:11 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id e6c88b1a; Fri, 4 Jun 2021 16:13:26 +0000 (UTC) Received: from primarylaptop.localdomain (localhost.localdomain [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 27805a61; Fri, 4 Jun 2021 16:13:26 +0000 (UTC) Date: Fri, 4 Jun 2021 18:16:02 +0200 From: Denis 'GNUtoo' Carikli To: Mathieu Othacehe Subject: Re: bug#48810: [PATCH] gnu: Add matterbridge. Message-ID: <20210604181602.0d04d3f5@primarylaptop.localdomain> In-Reply-To: <87im2testl.fsf@gnu.org> References: <20210603132231.10168-1-GNUtoo@cyberdimension.org> <87im2testl.fsf@gnu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/9ReSHjCEa7K3fCh3=mrU1ye"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48810 Cc: 48810@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/9ReSHjCEa7K3fCh3=mrU1ye Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 04 Jun 2021 14:07:50 +0200 Mathieu Othacehe wrote: > Hello, Hi, > The linter reports two problems: >=20 > --8<---------------cut here---------------start------------->8--- > gnu/packages/messaging.scm:2977:5: matterbridge@1.22.2: the source > file name should contain the package name > gnu/packages/messaging.scm:2977:5: matterbridge@1.22.2: the source > URI should not be an autogenerated tarball --8<---------------cut > here---------------end--------------->8--- > > which means that you should use: >=20 > > + (method url-fetch) >=20 > git-fetch here, >=20 > > + (sha256 > > + (base32 > > + "1p3mkfzv4xwm7vz8ja7qsa99qwxb9s61hnjjv65dkkjivlsif5hk")))) >=20 > and introduce something like: >=20 > --8<---------------cut here---------------start------------->8--- > (file-name (git-file-name name version)) > --8<---------------cut here---------------end--------------->8--- Thanks a lot. I've seen these warnings but I ignored thinking I couldn't fix it as I didn't find any alternate files for the releases. I've now sent an updated version. By the way, I don't know much about go, and I'm pretty new to Guix, so I did this package through trial and error and also looking at how things were done in Parabola (through the Arch Linux Community repository where the matterbridge package comes from). And the Submitting Patches section of the manual[1] has the following: > Make sure the package does not use bundled copies of software > already available as separate packages.=20 Here I'm unsure of what is being done under the hood, but at least Parabola / Arch Linux don't seem to do anything special with that. In any case I've already started deploying a matterbridge service by using this package (with Guix pack) and a modified systemd service file from Arch Linux on top of Trisquel 9 to bridge several IRC channels, and so far it worked fine. References: ----------- [1]https://guix.gnu.org/manual/en/guix.html#Submitting-Patches=20 Denis. --Sig_/9ReSHjCEa7K3fCh3=mrU1ye Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmC6UcMACgkQX138wUF3 4mO+qw/+Jl4Q7sBr/Raq6j8zq5mfe8OjNGYsHaVX2h9poI1U4b9tNt3RfobFMJrt WF9SDxOU/epbSTA54zNiUGKHGZNculNaVeuiGIPXfZCIH5jidryfvWkYAF/lv4YK PeErFPdJumKuaz9XKVB1i0BlwWwQEg62SOtkqIux5qvEscIn+IhwZITOGJUzVSZ5 Ou3h45TrZAJzJMHz0lrjXB3ZfmmrjJhuDEwDjy2iDuaXkIuh6fTXV7g8gTpPSViS 2QByr3qPcYEnFIrxa+xbOQXHGWl7j4myLvDn2KuHdLSmCKK2tVVZpvO7nePwliv9 /SwWuecRgUXQwxA9oYrN8vzCK17ibFc87mSiiOc4h6AbMDW1AnunWHjrS8wxN4Ga 51I/7F1w4Y8sIG/wMjCOLMd/V2nZ5zm+RW+1zRsT6neYnxSfK4PaxWidcI0Bz9bf 0erHvSoAGnDbc/hjwSXKBVtT6EQZI3lo5mBzPYQ4E7eXgx7uFhiEGG4q2I6oqbbO axiTjPi4gHSMa1K4y5ith6xh7uyaqhkYxWG4lUZQHaYSi5r+FLKd2So9ITtK00Ri gBRgsuFb/k+r1sh94Rl2y2kWWEBWYQ/9ImSFC8QkfMLLACeZ5NYtnbHkmd0cKQZG 7pmTiXlftT4zojSJhnQRk4GS1lgXZ5VhVo8Oku5Q1WQuAQeBQTg= =agzz -----END PGP SIGNATURE----- --Sig_/9ReSHjCEa7K3fCh3=mrU1ye-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 06 12:35:06 2021 Received: (at 48810-done) by debbugs.gnu.org; 6 Jun 2021 16:35:06 +0000 Received: from localhost ([127.0.0.1]:53767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpvju-0007iL-Fm for submit@debbugs.gnu.org; Sun, 06 Jun 2021 12:35:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39282) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lpvjq-0007hk-Oe for 48810-done@debbugs.gnu.org; Sun, 06 Jun 2021 12:35:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54050) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lpvjl-0003G8-D4; Sun, 06 Jun 2021 12:34:57 -0400 Received: from [2a01:cb1c:5dc:f000:66c4:b3dd:2ba2:5688] (port=58782 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lpvjk-0003oi-VR; Sun, 06 Jun 2021 12:34:57 -0400 From: Mathieu Othacehe To: Denis 'GNUtoo' Carikli Subject: Re: [PATCH v2] gnu: Add matterbridge. References: <87im2testl.fsf@gnu.org> <20210604161141.8929-1-GNUtoo@cyberdimension.org> Date: Sun, 06 Jun 2021 18:34:48 +0200 In-Reply-To: <20210604161141.8929-1-GNUtoo@cyberdimension.org> (Denis Carikli's message of "Fri, 4 Jun 2021 18:11:41 +0200") Message-ID: <87eedfost3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48810-done Cc: 48810-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Denis, > * gnu/packages/messaging.scm (matterbridge): New variable. Thanks for this new version. I fixed the indentation, edited a bit the synopsis and description and pushed as 3c401ca6df385b737363e5caea7396d3aa55863f. Thanks, Mathieu From unknown Sat Aug 16 00:33:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 05 Jul 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator