Subject: [bug#77181] [PATCH v2 2/6] gnu: pass-age: Fix shell completion directories.

From: Efraim Flashner <[email-masked]>
Date: Thu, 27 Mar 2025 10:46:41 +0200

From: 45mg <[email-masked]>

* gnu/packages/password-utils.scm (pass-age) [arguments]: Use the shell
completion directory variables.

Change-Id: I6ed77cff28a1fb7305d8a0357026e518dcc0e11a
---
 gnu/packages/password-utils.scm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
index bce4af8e5f0..23fa82a2e54 100644
--- a/gnu/packages/password-utils.scm
+++ b/gnu/packages/password-utils.scm
@@ -845,7 +845,7 @@ (define-public pass-age
         (base32 "1ap2i08zjvacd2rllrsx9bw3zz5i99bk0i5yxrssvn6w60bwjqdl"))))
     (build-system copy-build-system)
     (arguments
-     '(#:modules
+     `(#:modules
        ((guix build copy-build-system)
         (guix build utils)
         (srfi srfi-26))
@@ -879,11 +879,11 @@ (define-public pass-age
        #:install-plan
        '(("src/passage" "/bin/")
          ("src/completion/pass.bash-completion"
-          "/etc/bash-completion.d/passage")
+          ,(string-append bash-completion-dir "passage"))
          ("src/completion/pass.fish-completion"
-          "/share/fish/vendor_completions.d/passage")
+          ,(string-append fish-completion-dir "passage"))
          ("src/completion/pass.zsh-completion"
-          "/share/zsh/site-functions/_passage"))))
+          ,(string-append zsh-completion-dir "_passage")))))
     (inputs
      (list age coreutils-minimal git-minimal
            procps qrencode sed tree util-linux))
-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted