GNU bug report logs - #57952
[PATCH] gnu: Add guix-send-email.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Efraim Flashner <efraim@HIDDEN>; Keywords: patch; dated Tue, 20 Sep 2022 10:02:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2022 10:01:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 06:01:20 2022
Received: from localhost ([127.0.0.1]:56104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaa48-0003vL-Cs
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 06:01:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:39538)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim.flashner@HIDDEN>) id 1oaa46-0003vD-Mc
 for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 06:01:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57524)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <efraim.flashner@HIDDEN>)
 id 1oaa44-0006Db-Kj
 for guix-patches@HIDDEN; Tue, 20 Sep 2022 06:01:18 -0400
Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:42995)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <efraim.flashner@HIDDEN>)
 id 1oaa41-000710-TF
 for guix-patches@HIDDEN; Tue, 20 Sep 2022 06:01:16 -0400
Received: by mail-ej1-x62f.google.com with SMTP id sb3so4817626ejb.9
 for <guix-patches@HIDDEN>; Tue, 20 Sep 2022 03:01:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:sender:from:to:cc:subject:date;
 bh=V9kSM4izgiDkxxt2OQkSNiqjugdOaBpy79xK+bXLGTs=;
 b=CrivuZF+XDy4FntA+xXOP7WW40WNFEGoiuoeSvhe4wZ8V3hKkss7cA2yVEUsr8VNf0
 pOMoaY2zKqltLesgBZwu+15ryJigULHot1ozGnwV3r+kQRcJ+8RdqCSHd/bjj1JZvOat
 H6RP7qzeFprcv5uYMVMB/K/bV93nEWA6uaZajS+/2HUYCZf8kyXZ0cCj9uMGrLjmzINj
 iUO0gURVfOwDW9nXtUu9RN06S9NoM9iGPyep0vby8GYHi9Wppo5Mp1Kq+5QyLxZNOtlR
 NK+XhbMvUFp/LMJdziK0SQ3xNAaogMyddexOSs2w8rPqQzFvgktkFQ0s1FqocuJYpWdC
 CSmA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:sender:x-gm-message-state:from:to:cc:subject:date;
 bh=V9kSM4izgiDkxxt2OQkSNiqjugdOaBpy79xK+bXLGTs=;
 b=bjfAocdWahZK4EiGIYLOHUffbnSUcjXkGrXHh5/03QvgyRy5GlAAPM2vFY6yggL37m
 J6XYPs3sVbgKb9GbuevbVpg2M/5Rc0H/hZ6/CKPsEgB49TIC3ELbzVN+p92zcz1pNJnh
 D4rjpbFyx38jdmQlixyxJqnPf638D48DD8fTD60KeCAkQF75mXzPDQrFldrN11gfnrCa
 ZDcwwuQsmROKYquTaG8iEJk2RbfdxySiyfsy4sSnjPVDqlC/qE/grAtpJfd0CveXNlW7
 YpniHKovxVX1iXM+Qy+At/LTDmGtPubhMCPMwWHomQ9Qv3aNIRh6n1WpjMqGOL4mO0CP
 K3+w==
X-Gm-Message-State: ACrzQf3K0BssLGqkm9Hh8EbinnN+jbEqUJ/7VtipXg5w4hcPig2afRHu
 bfpx6EDnLNglxhYla8X7eR/3rgi416/p4g==
X-Google-Smtp-Source: AMsMyM7pGOlufwfE6xnQ3+DvXfaSgtZLL3v/nHAuAvCr7GzizmkHTWIQhdONFDY92+jMxRB7VamVBA==
X-Received: by 2002:a17:906:7944:b0:73c:838:ac3d with SMTP id
 l4-20020a170906794400b0073c0838ac3dmr16234682ejo.242.1663668071226; 
 Tue, 20 Sep 2022 03:01:11 -0700 (PDT)
Received: from localhost ([188.120.129.122]) by smtp.gmail.com with ESMTPSA id
 a25-20020a50e719000000b00452ff2c203asm972398edn.92.2022.09.20.03.01.10
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 20 Sep 2022 03:01:10 -0700 (PDT)
From: Efraim Flashner <efraim@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add guix-send-email.
Date: Tue, 20 Sep 2022 13:00:54 +0300
Message-Id: <19f63e3d16273f9d43f61890b0c8472afaa75d3f.1663668015.git.efraim@HIDDEN>
X-Mailer: git-send-email 2.37.3
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=2a00:1450:4864:20::62f;
 envelope-from=efraim.flashner@HIDDEN; helo=mail-ej1-x62f.google.com
X-Spam_score_int: -14
X-Spam_score: -1.5
X-Spam_bar: -
X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25,
 FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: submit
Cc: Efraim Flashner <efraim@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

* gnu/packages/guix-extensions.scm (guix-send-email): New variable.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add guix-extensions.
---
 gnu/local.mk                     |  1 +
 gnu/packages/guix-extensions.scm | 62 ++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 gnu/packages/guix-extensions.scm

diff --git a/gnu/local.mk b/gnu/local.mk
index 238fb72bc5..ba28788776 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -295,6 +295,7 @@ GNU_SYSTEM_MODULES =				\
   %D%/packages/guile.scm			\
   %D%/packages/guile-wm.scm			\
   %D%/packages/guile-xyz.scm			\
+  %D%/packages/guix-extensions.scm		\
   %D%/packages/gv.scm				\
   %D%/packages/gxmessage.scm			\
   %D%/packages/hardware.scm			\
diff --git a/gnu/packages/guix-extensions.scm b/gnu/packages/guix-extensions.scm
new file mode 100644
index 0000000000..bb23b59de4
--- /dev/null
+++ b/gnu/packages/guix-extensions.scm
@@ -0,0 +1,62 @@
+;;; Copyright © 2022 Efraim Flashner <efraim@HIDDEN>
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages guix-extensions)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix gexp)
+  #:use-module (guix packages)
+  #:use-module (guix build-system trivial)
+  #:use-module (gnu packages version-control))
+
+(define-public guix-send-email
+  (package
+    (name "guix-send-email")
+    (version "0")
+    (source #f)
+    (build-system trivial-build-system)
+    (arguments
+     (list
+       #:modules '((guix build utils))
+       #:builder
+       #~(begin
+           (use-modules (guix build utils))
+           (let ((dest (string-append #$output
+                                      "/share/guix/extensions/send-email.scm"))
+                 (git            #$(this-package-input "git"))
+                 (git-send-email (assoc-ref %build-inputs "git:send-email")))
+             (mkdir-p (dirname dest))
+             (with-output-to-file dest
+               (lambda ()
+                 (format #t
+"(define-module (guix extensions send-email)~@
+                #:use-module (guix scripts)~@
+                #:export (guix-send-email))~@
+~@
+(define-command (guix-send-email . args)~@
+                (category extension)~@
+                (synopsis \"Replace 'guix send-email' with 'git send-email'\")~@
+                (setenv \"GIT_EXEC_PATH\" \"~a/libexec/git-core\")~@
+                (apply system* \"~a/bin/git\" \"send-email\" args))~%"
+                 git-send-email git)))))))
+    (home-page "")  ; Should be documentation location for GUIX_EXTENSIONS_PATH
+    (inputs
+     `(("git" ,git)
+       ("git:send-email" ,git "send-email")))
+    (synopsis "Replace @code{guix send-email} with @code{git send-email}")
+    (description "This Guix extension provides a shell redirect from @code{guix
+send-email} to @code{git send-email}.")
+    ;; The package definition is longer than the code;
+    ;; let this serve as the declaration of the license.
+    (license license:gpl3+)))

base-commit: 5a9e3b7c3981f684f601e2d21e8202223b384de9
-- 
2.37.3





Acknowledgement sent to Efraim Flashner <efraim@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#57952; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2022 10:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.