From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SjSkIw92kWFUSAEAgWs5BA (envelope-from ) for ; Sun, 14 Nov 2021 21:48:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id AGedHg92kWGjXwAAB5/wlQ (envelope-from ) for ; Sun, 14 Nov 2021 20:48:15 +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 1E49FA121 for ; Sun, 14 Nov 2021 21:48:15 +0100 (CET) Received: from localhost ([::1]:54370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmMQA-0000rh-9y for larch@yhetil.org; Sun, 14 Nov 2021 15:48:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmMPy-0000iA-AK for guix-patches@gnu.org; Sun, 14 Nov 2021 15:48:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmMPy-0002yW-1T for guix-patches@gnu.org; Sun, 14 Nov 2021 15:48:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmMPx-0007ff-VU; Sun, 14 Nov 2021 15:48:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51853] [PATCH 1/2] gnu: sendgmail: Rename package to match command. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip+debbugs.cc@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Sun, 14 Nov 2021 20:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51853@debbugs.gnu.org Cc: Philip McGrath X-Debbugs-Original-Xcc: Philip McGrath Received: via spool by 51853-submit@debbugs.gnu.org id=B51853.163692282329289 (code B ref 51853); Sun, 14 Nov 2021 20:48:01 +0000 Received: (at 51853) by debbugs.gnu.org; 14 Nov 2021 20:47:03 +0000 Received: from localhost ([127.0.0.1]:51859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmMOw-0007bz-Cf for submit@debbugs.gnu.org; Sun, 14 Nov 2021 15:47:03 -0500 Received: from mail-qv1-f47.google.com ([209.85.219.47]:43535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmMOu-0007bg-4e for 51853@debbugs.gnu.org; Sun, 14 Nov 2021 15:46:56 -0500 Received: by mail-qv1-f47.google.com with SMTP id j9so9992808qvm.10 for <51853@debbugs.gnu.org>; Sun, 14 Nov 2021 12:46:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ZhN+6u0xQ/3Z6MAldyakNKjZoSVPPeeofgWJj6P5f1A=; b=NacpPQEHlX6w+xlriqaLXdvHkM3YmvG7vDm1K4XU4vf2eIathKltGul5HfnHE/D422 Tn0vHfX90knhQ5ahTlW8EUK+/cPcfQkhvVgA6/FWzB5pp80xduesaZMM3H1q/WvHl+Vh p4eG+SeGFKqmkFBxzNywJVQBL8hEVuvzcE0/bReh7ZOiEUZWVH1TMpN3ntEuJ6FK4liA HWg7OCPQ6nzKH1yEGe3gOHXwysjujuWQv27PCEutpcCvgC9JZI/0uJmv0szdAQU1l5ac aukd0+U+3Ue7seIDx3Dldg3ZM6oYV45KlR4NZJuMjwXZO6QkFvPkISrp0CjqLTkX0sk6 j+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZhN+6u0xQ/3Z6MAldyakNKjZoSVPPeeofgWJj6P5f1A=; b=eaJ/vfFMgBsDJeU3t4E2b2RcgZn71/Irfdfx6tVoT8A0z3SzTQfkTHtOpao75cxUDH 15Rxhxvs+1nwZpwlCAPlCVXR9HlaijzLHuxkm2kpNr1qa6jZiVffhJ6TjBxctUOS7ZlR h5C2qoa4bvaXDCvHFy6Iof/NNxQnb2FoEZqyM+cyim+Ww9xKWCqYfiz6QRs0FExyebfC hBIr4elS/yDvNiw+Cd6d0F8HHkXiU5JY0ZmzBmZYDn9K+sgg8IOR2tyb+c4r31S8z2tD YMlgOZa2pjE28mxLcbIId9l7v3mzQ1tvhhyGXoJ6q/EY0G3gtKwxu2l7g9Jf7oN0QLOU e4JA== X-Gm-Message-State: AOAM531ut6PCg+NjG0eRTgHiM9ah9zmpGe/0B3Bz2/9xznfVJ6z8SMV/ njcPH3WKaYMOJ2VFq6z9K+WK8bh8+OpjWhJ8 X-Google-Smtp-Source: ABdhPJxViJ6rzzBzcFz2rlOiDqm5bJ8qi8mMQh2sh7E1YcvSvh5LT8apTXJDMs1v/0IK6i6lVcwiRQ== X-Received: by 2002:a05:6214:250d:: with SMTP id gf13mr31226422qvb.39.1636922810474; Sun, 14 Nov 2021 12:46:50 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id g21sm5383343qtb.62.2021.11.14.12.46.50 for <51853@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Nov 2021 12:46:50 -0800 (PST) From: Philip McGrath Date: Sun, 14 Nov 2021 15:46:48 -0500 Message-Id: <20211114204649.94670-1-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211114203614.89441-1-philip@philipmcgrath.com> References: <20211114203614.89441-1-philip@philipmcgrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636922895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZhN+6u0xQ/3Z6MAldyakNKjZoSVPPeeofgWJj6P5f1A=; b=e6XL0Qx8hJ+RTVtiOWB2R1F3qZ2ar679YU3siamhhewCnis6+zozHI/6E/k9j54v0uZfij NkuzcArxc45EIe6mfCXcGR9CHDiu8K9AVIyNavoWqLm6xiqa70IQeMx7/ypWQyycSr9FcA +fKzTDh14Y0g9ZEmTWNmh2DJJQduZ1nEUxx985Q4eGB36SE6Mp2rsMSfGYzv72mH+t3IBd 6lDTqu7gBb2+Wj9tRP4ObxW+QgULD65F0Jsho0yA721mQ9eU/gfTI4wf/lJvHvCS6ovjgB SIpXg7qpPfrMRjgx7hYQxRBIOJBmdeOKOwPYLnEr53/SyXj6EcXg1NcyRhBA5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636922895; a=rsa-sha256; cv=none; b=JNQxvPabD8kjBnsGu8/m23jxlemhCdyB3Vl5ONS+tZy8ifUDICAamnFYuGhHkVaa/TZEdG bgRLXkv1TvyJ0W3P/JfpwVS6Fp53+e6WaIsOIu4U7szUVBK5lkhV2ZtHKOx40H6YCcE6mh Lapj9gKbSDxFUWpTEffqy9L1WE63N8JfDCs0Wzb5xnLDeHzcIblWnboKvBSawUG9agX7Hx rnXfW3/Uv7k7ksT+mmimSU9curadpuF/6h3WLI6sIV1qwNDNvOWG5BAllSnzXyB8BbhfrJ 7d9fpCXLugcmK9kFLnEcbqESc0CYWu28vCLqdDkhrP3bsZZyaHtExfoHd/0bLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=NacpPQEH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=NacpPQEH; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1E49FA121 X-Spam-Score: 0.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: SRaayEWY2g5c Suggested by Ludo’ in . * gnu/packages/golang.scm (go-github-com-google-gmail-oauth2-tools-go-sendgmail): Move to ... * gnu/packages/mail.scm (sendgmail): ... this variable. --- gnu/packages/golang.scm | 36 +----------------------------------- gnu/packages/mail.scm | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 35 deletions(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cc2a4ebc16..aaf6194460 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2021 jgart ;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; Copyright © 2021 Chadwain Holness +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -3036,41 +3037,6 @@ (define-public go-cloud-google-com-go-compute-metadata API service accounts for Go.") (license license:asl2.0))) -(define-public go-github-com-google-gmail-oauth2-tools-go-sendgmail - (let ((commit "e3229155a4037267ce40f1a3a681f53221aa4d8d") - (revision "0")) - (package - (name "go-github-com-google-gmail-oauth2-tools-go-sendgmail") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/google/gmail-oauth2-tools") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1cxpkiaajhq1gjsg47r2b5xgck0r63pvkyrkm7af8c8dw7fyn64f")))) - (propagated-inputs - `(("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2) - ("go-cloud-google-com-go-compute-metadata" - ,go-cloud-google-com-go-compute-metadata))) - (build-system go-build-system) - (arguments - '(#:unpack-path "github.com/google/gmail-oauth2-tools" - #:import-path "github.com/google/gmail-oauth2-tools/go/sendgmail")) - (home-page - "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail") - (synopsis - "Sendmail-compatible tool for using Gmail with @code{git send-email}") - (description - "The @command{sendgmail} command provides a minimal sendmail-compatible -front-end that connects to Gmail using OAuth2. It is specifically designed -for use with @code{git send-email}. The command needs a Gmail API key to -function.") - (license license:asl2.0)))) - (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index f00e8ac7b3..4ee878d4c6 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -43,6 +43,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Benoit Joly ;;; Copyright © 2021 Morgan Smith +;;; Copyright © 2021 Philip McGrath ;;; ;;; This file is part of GNU Guix. ;;; @@ -4603,3 +4604,38 @@ (define-public rss2email ;; GPL version 2 or 3. NOT 2+. (license (list license:gpl2 license:gpl3)))) + +(define-public sendgmail + (let ((commit "e3229155a4037267ce40f1a3a681f53221aa4d8d") + (revision "0")) + (package + (name "sendgmail") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gmail-oauth2-tools") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1cxpkiaajhq1gjsg47r2b5xgck0r63pvkyrkm7af8c8dw7fyn64f")))) + (propagated-inputs + `(("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2) + ("go-cloud-google-com-go-compute-metadata" + ,go-cloud-google-com-go-compute-metadata))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/google/gmail-oauth2-tools" + #:import-path "github.com/google/gmail-oauth2-tools/go/sendgmail")) + (home-page + "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail") + (synopsis + "Sendmail-compatible tool for using Gmail with @code{git send-email}") + (description + "The @command{sendgmail} command provides a minimal sendmail-compatible +front-end that connects to Gmail using OAuth2. It is specifically designed +for use with @code{git send-email}. The command needs a Gmail API key to +function.") + (license license:asl2.0)))) -- 2.32.0