Subject: [bug#30996] [PATCH] gnu: gnupg: Add pinentry-emacs.

From: Pierre Neidhardt <[email-masked]>
Date: Fri, 30 Mar 2018 13:18:25 +0530

---
 gnu/packages/gnupg.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index c561c14ca..74d1d027f 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -38,6 +38,7 @@
   #:use-module (gnu packages base)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages crypto)
+  #:use-module (gnu packages emacs)
   #:use-module (gnu packages openldap)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
@@ -738,6 +739,19 @@ including tools for signing keys, keyring analysis, and party preparation.
                   (ftp-directory . "/gcrypt/pinentry")
                   (upstream-name . "pinentry")))))
 
+(define-public pinentry-emacs
+  (package
+   (inherit pinentry-tty)
+   (name "pinentry-emacs")
+   (inputs
+    `(("emacs" ,emacs)
+      ,@(package-inputs pinentry-tty)))
+   (arguments
+    `(#:configure-flags '("--enable-pinentry-emacs")))
+   (description
+    "Pinentry provides a console and an Emacs interface that allows users to
+enter a passphrase when required by @code{gpg} or other software.")))
+
 (define-public pinentry-gtk2
   (package
     (inherit pinentry-tty)
-- 
2.16.1