gnu: aerc: Don't rely on input labels.

* gnu/packages/mail.scm (aerc)[arguments]: Test for …/bin/zoxide directly.

Change-Id: I6492bd969048a548c45504c0897b851f369277b9
This commit is contained in:
Tobias Geerinckx-Rice 2024-09-08 02:00:00 +02:00
parent 4b9b1ec787
commit 4729cef6bd
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -5086,12 +5086,11 @@ (define-public aerc
(string-append
"\"" (search-input-file inputs "bin/sh")
"\"")))
(when (assoc-ref inputs "zoxide")
(substitute* "commands/z.go"
(("\"zoxide\"")
(string-append
"\"" (search-input-file inputs "bin/zoxide")
"\""))))
(let ((zoxide (search-input-file inputs "bin/zoxide")))
(when zoxide
(substitute* "commands/z.go"
(("\"zoxide\"")
(string-append "\"" zoxide "\"")))))
(substitute* (list "lib/crypto/gpg/gpg.go"
"lib/crypto/gpg/gpg_test.go"
"lib/crypto/gpg/gpgbin/keys.go"