From patchwork Sun May 23 07:38:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 29511 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 7A55327BC81; Sun, 23 May 2021 08:39:32 +0100 (BST) 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_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, 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 ESMTPS id 3F7A327BC78 for ; Sun, 23 May 2021 08:39:32 +0100 (BST) Received: from localhost ([::1]:49296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkihv-0001RT-Gn for patchwork@mira.cbaines.net; Sun, 23 May 2021 03:39:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkihS-0001Qf-PH for guix-patches@gnu.org; Sun, 23 May 2021 03:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkihS-0006HC-IQ for guix-patches@gnu.org; Sun, 23 May 2021 03:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkihS-0002B1-Gf for guix-patches@gnu.org; Sun, 23 May 2021 03:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48599] [PATCH] gnu: Add omemo-wget. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 May 2021 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48599 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48599@debbugs.gnu.org Cc: Raghav Gururajan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16217555228337 (code B ref -1); Sun, 23 May 2021 07:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 May 2021 07:38:42 +0000 Received: from localhost ([127.0.0.1]:40528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkih7-0002AO-NQ for submit@debbugs.gnu.org; Sun, 23 May 2021 03:38:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:36798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkih4-0002AE-Gz for submit@debbugs.gnu.org; Sun, 23 May 2021 03:38:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkih2-0001Pq-JP for guix-patches@gnu.org; Sun, 23 May 2021 03:38:38 -0400 Received: from out0.migadu.com ([2001:41d0:2:267::]:36310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkigy-000627-Dm for guix-patches@gnu.org; Sun, 23 May 2021 03:38:36 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1621755507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Y5Z3oHyg1gukcpsO9TzVoNo1BHeShV83Uga/eRGFk8Q=; b=P8dKSH2s07ypglWgq0vt8kXGfVk0LZO1kV4JMyN+SHvHv5/v2GJTNFwynkZ+AiqH6ONnK5 BbCuBVxc+on6LW54xnFB7KIZxWqUni8n2ywRtWMZBffGqQsOuyk+fgNowWkjaXy5/5pul5 hwx9V2Rl00G68p0aDNbyNwnY2+0rZ6YZk7DvIkjMR7oX0+h7l9Cz4NiMSO6Lg0MtVGX7aj jRopPwXNNaU/OEflRcDRK79esoAnldJyRvhdkmoXyljJNsnBF9a8oh7mDr4fXH5fN1dasW Pi1q/4P37C3hqOJLFwcRpfKO+DyJYdu1Awj5MTUZu5ZFFUvY7rJzFGisTgC3jg== Date: Sun, 23 May 2021 03:38:02 -0400 Message-Id: <20210523073802.20621-1-rg@raghavgururajan.name> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: rg@raghavgururajan.name Received-SPF: pass client-ip=2001:41d0:2:267::; envelope-from=rg@raghavgururajan.name; helo=out0.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches X-Patchwork-Original-From: Raghav Gururajan via Guix-patches via From: Raghav Gururajan X-getmail-retrieved-from-mailbox: Patches * gnu/packages/messaging.scm (omemo-wget): New variable. --- gnu/packages/messaging.scm | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 59c154b9f7..f26df7dd46 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm @@ -72,6 +72,7 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) + #:use-module (gnu packages golang) #:use-module (gnu packages gperf) #:use-module (gnu packages graphviz) #:use-module (gnu packages gstreamer) @@ -125,6 +126,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system perl) #:use-module (guix build-system python) @@ -137,6 +139,45 @@ #:use-module (guix packages) #:use-module (guix utils)) +(define-public omemo-wget + (package + (name "omemo-wget") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/roobre/omemo-wget") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s3vfaicw5xbjl9yiyr4ckrzhzqbvfh1w2ih1igavlfpgw4v7kva")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/roobre/omemo-wget" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (let* ((xdg-utils (assoc-ref inputs "xdg-utils")) + (xdg-open (string-append xdg-utils "/bin/xdg-open"))) + (substitute* (find-files "." "\\.go$") + ;; To correct the import path of 'aesgcm' package. + (("roob\\.re/omemo-wget/aesgcm") + "github.com/roobre/omemo-wget/aesgcm") + ;; To use absolute path of 'xdg-open' program. + (("xdg-open") xdg-open)))))))) + (inputs + `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors) + ("xdg-utils" ,xdg-utils))) ; for xdg-open program + (home-page "https://github.com/roobre/omemo-wget") + (synopsis "CLI to download and decrypt aesgcm:// URLs") + (description "OMEMO-wget is a tool to handle cryptographic URLs, +generated by OMEMO Multi-End Message and Object Encryption, +during XMPP-based sessions.") + (license license:lgpl3+))) + (define-public psi (package (name "psi")