all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Missing pinentry-emacs for gpg-agent?
Date: Wed, 28 Mar 2018 12:47:52 +0530	[thread overview]
Message-ID: <87po3ois8d.fsf@gmail.com> (raw)
In-Reply-To: <87d0zon0j5.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2001 bytes --]


Oleg Pykhalov <go.wigust@gmail.com> writes:

> Then could you add a flag Vladimir talked about and send a patch?  ;-)

What about a separate package?  E.g.

	(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.")))

I haven't delved into packaging so far.  I have read the manual but I'm
unsure about the best practice for local hacking.

I have set GUIX_PACKAGE_PATH=~/.guix-packages, then

	> cp ~/.config/guix/latest/gnu/packages/gnupg.scm ~/.guix-packages/
	> chmod +w ~/.guix-packages/

Then add the above the the file, plus a

  #:use-module (gnu packages emacs)

at the beginning.

Now if I do

	> guix package -s pinentry-emacs
	guix package: warning: failed to load '(gnupg)':
	no code for module (gnupg)
	name: pinentry-emacs
	version: 1.1.0
	outputs: out
	systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux
	dependencies: emacs-25.3 libassuan-2.5.1 libsecret-0.18.5 ncurses-6.0-20170930
	+ pkg-config-0.29.2
	location: /home/ambrevar/.guix-packages/gnupg.scm:991:2
	homepage: https://gnupg.org/aegypten2/
	license: GPL 2+
	synopsis: GnuPG's interface to passphrase input  
	description: Pinentry provides a console and an Emacs interface that allows users to enter a
	+ passphrase when required by `gpg' or other software.
	relevance: 4

Notive the error at th beginning:

	guix package: warning: failed to load '(gnupg)':
	no code for module (gnupg)

I don't understand this.

That said, is this the commended way to proceed?  Or should I work from
a local checkout of guix?  What about the value of GUIX_PACKAGE_PATH then?

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-03-28  7:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27  6:17 Missing pinentry-emacs for gpg-agent? Pierre Neidhardt
2018-03-27  9:53 ` Ludovic Courtès
2018-03-27 15:45   ` Alex Kost
2018-03-27 15:50   ` Oleg Pykhalov
2018-03-27 18:28     ` Pierre Neidhardt
2018-03-27 20:22     ` Vladimir Sedach
2018-03-28  4:49       ` Pierre Neidhardt
2018-03-28  7:04         ` Oleg Pykhalov
2018-03-28  7:17           ` Pierre Neidhardt [this message]
2018-03-28  8:29             ` Pierre Neidhardt
2018-03-29  7:30               ` Oleg Pykhalov
2018-03-29  7:23             ` Oleg Pykhalov
2018-03-29  8:44               ` Pierre Neidhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87po3ois8d.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.