From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: Christopher Baines <mail@cbaines.net>
Cc: 58381@debbugs.gnu.org
Subject: [bug#58381] [PATCH 1/3] gnu: Add go-github-com-go-piv-piv-go.
Date: Tue, 11 Oct 2022 14:18:30 +0200 [thread overview]
Message-ID: <878rlmwo2x.fsf@ngraves.fr> (raw)
In-Reply-To: <87pmeyab3i.fsf@cbaines.net>
On 2022-10-11 11:48, Christopher Baines wrote:
> What relation does pcsc-lite have to this package, and why does it need
> to be propagated?
>
> If this can be avoid, that would be good. Otherwise it would be good to
> mention why the propagation is needed in a comment.
For piv-go, in their README:
To build on Linux, piv-go requires PCSC lite. To install on Debian-based distros, run:
sudo apt-get install libpcsclite-dev
==> So probably no need to propagate here.
----
For yubikey-agent:
The package relies on pcscd (daemon) to run on linux, which is already
available in guix. Maybe it's better to say that in the README ? Instead
of the package, what it needs is actually the service.
I've also written some tested lines for a yubikey-agent
configuration/feature (as done in the RDE project) shepherd service,
although as it is really tiny, I didn't know if I should've contributed
this.
It looks like that, and did work (it also depends on the acceptance of
the patch https://issues.guix.gnu.org/52900 in this case):
(define* (feature-yubikey-agent
#:key
(yubikey-agent yubikey-agent))
"Configure Yubikey-Agent."
(ensure-pred file-like? yubikey-agent)
(define (get-system-services _)
(list
(service pcscd-service-type)
(udev-rules-service
'yubikey
(file->udev-rule
"70-u2f.rules"
(file-append libfido2 "/udev/rules.d/70-u2f.rules")))))
;; (define (get-home-services config)
;; (list
;; ;; MAYBE: It should be installed system-wide?
;; (simple-service
;; 'yubikey-agent-add-yubikey-agent-package
;; home-profile-service-type
;; (list yubikey-agent))
;; (simple-service
;; 'start-yubikey-agent-at-startup
;; home-shepherd-service-type
;; (list (shepherd-service
;; (documentation "Run the yubikey-agent.")
;; (provision '(yubikey-agent))
;; (requirement '())
;; (start #~(make-forkexec-constructor
;; (list (string-append
;; #$yubikey-agent "/bin/yubikey-agent")
;; "-l" "/tmp/yubikey-agent.sock")))
;; (stop #~(make-kill-destructor)))))))
(feature
(name 'yubikey-agent)
(values `((yubikey-agent . ,yubikey-agent)))
(system-services-getter get-system-services)
;; (home-services-getter get-home-services)
))
I'm not sure what would be the guideline here regarding doing or
avoiding propagations. WDYT? (I'm sending a V2 once I have a clearer
idea of what makes sense).
---
From the package README:
On Arch, use [the `yubikey-agent` package](https://aur.archlinux.org/packages/yubikey-agent/) from the AUR.
```
git clone https://aur.archlinux.org/yubikey-agent.git
cd yubikey-agent && makepkg -si
systemctl daemon-reload --user
sudo systemctl enable --now pcscd.socket
systemctl --user enable --now yubikey-agent
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/yubikey-agent/yubikey-agent.sock"
```
--
Best regards,
Nicolas Graves
next prev parent reply other threads:[~2022-10-11 13:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-08 16:36 [bug#58381] yubikey-agent Nicolas Graves via Guix-patches via
2022-10-08 16:39 ` [bug#58381] [PATCH 1/3] gnu: Add go-github-com-go-piv-piv-go Nicolas Graves via Guix-patches via
2022-10-08 16:39 ` [bug#58381] [PATCH 2/3] gnu: Add go-github-com-twpayne-go-pinentry-minimal Nicolas Graves via Guix-patches via
2022-10-08 16:39 ` [bug#58381] [PATCH 3/3] gnu: Add yubikey-agent Nicolas Graves via Guix-patches via
2022-10-11 10:50 ` Christopher Baines
2022-10-11 10:48 ` [bug#58381] [PATCH 1/3] gnu: Add go-github-com-go-piv-piv-go Christopher Baines
2022-10-11 12:18 ` Nicolas Graves via Guix-patches via [this message]
2022-10-13 10:58 ` Christopher Baines
2022-10-23 9:03 ` Nicolas Graves via Guix-patches via
2022-10-23 9:03 ` [bug#58381] [PATCH 2/3] gnu: Add go-github-com-twpayne-go-pinentry-minimal Nicolas Graves via Guix-patches via
2022-10-23 9:03 ` [bug#58381] [PATCH 3/3] gnu: Add yubikey-agent Nicolas Graves via Guix-patches via
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878rlmwo2x.fsf@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=58381@debbugs.gnu.org \
--cc=mail@cbaines.net \
--cc=ngraves@ngraves.fr \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).