From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KE12AKAGqmCtdwEAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 09:39:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iGXGN58GqmBJEwAA1q6Kng (envelope-from ) for ; Sun, 23 May 2021 07:39:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 63D13A4E7 for ; Sun, 23 May 2021 09:39:11 +0200 (CEST) Received: from localhost ([::1]:49296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkihZ-0001RT-Qe for larch@yhetil.org; Sun, 23 May 2021 03:39:09 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621755551; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Y5Z3oHyg1gukcpsO9TzVoNo1BHeShV83Uga/eRGFk8Q=; b=eV33WU6wDKabP/5zMDNdhg9LfH4hwMyD7CL9VZuAAgOJGA72uM2hFxklH6xiqQUkckk318 kXb8SPPMexuURrWyk7trqVtkwLSWlaI0TEX6YjjrzReNd6Uh1egUfY734444RTm5CZM4kI BEkFQOg25WAQHKJ3g1kPIPS3eUaRgTdZDXOm3HfjvZU7nttEzjXUwwAgdxqVFUuUr3Put3 jO9spmrjXSPLcWQHNNkJA686LR1n9x20zLarDQhsBYW+D2aEVK6WA34At6PTdm+DXuanuQ bB9OtP/NH7fBjWOK8i4aAO5QRYrmgNNhsjXGz5Y+/wG62QAfgwF0eWGq/59ljQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621755551; a=rsa-sha256; cv=none; b=aLgsuZ0mxiexvN+tmWTlC1JBHyuKfyfnuClWLgFXDPjdwCqw8GNtENBByQjgS7AXYNyIz2 4+QnsO0xpO7nDvFHiUDBA6qzaq5Nq2NJBhi5TanVbdPppg3qj3hqISyHK3KoGGV09k/oS7 0O0FQsqSxJoDxNyD9x8PMVUVglBcbeJgQB09qITRhsC5ZWkqAvDQ2f4IcUU7lK/XmePuiO EWdmrYSmZUKmk3M6U16WUMKQJHS0660rC526C+fr0SWOVXdA9Z5GOIMzD0dXGnb1a59hUI jIZtPmsneyh9ptG1CSM3wXPFYG6W2805qxo5cAlwxb8hxp0SiYGDZSj77xaC1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=P8dKSH2s; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.06 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=raghavgururajan.name header.s=key1 header.b=P8dKSH2s; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 63D13A4E7 X-Spam-Score: 1.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: FlATfhHSbPiU * 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") -- 2.31.1