gnu: pass-otp: Improve style.

* gnu/packages/password-utils.scm (pass-otp)[arguments]: Use
G-Expressions.

Change-Id: I93c5cde9e54bd7b19d76c9c6e9ce8d996420c292
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Cayetano Santos 2025-09-16 16:41:32 +02:00 committed by Liliana Marie Prikler
parent a7b3e9f931
commit 65e33d48d8
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -1032,30 +1032,31 @@ from the @code{password-store} package. Files are encrypted with the
"0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p")))) "0rrs3iazq80dn0wbl20xkh270428jd8l99m5gd7hl93s4r4sc82p"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:make-flags (list
(let* ((out (assoc-ref %outputs "out")) #:make-flags
(bashcomp (string-append out "/etc/bash_completion.d"))) #~(list (string-append "PREFIX=" #$output)
(list (string-append "PREFIX=" %output) (string-append
(string-append "BASHCOMPDIR=" bashcomp))) "BASHCOMPDIR="
#:phases (string-append #$output "/etc/bash_completion.d")))
(modify-phases %standard-phases #:phases
(delete 'configure) #~(modify-phases %standard-phases
(add-after 'build 'patch-oath-path (delete 'configure)
(lambda* (#:key inputs #:allow-other-keys) (add-after 'build 'patch-oath-path
(substitute* "otp.bash" (lambda* (#:key inputs #:allow-other-keys)
(("^OATH=.*$") (substitute* "otp.bash"
(string-append (("^OATH=.*$")
"OATH=" (string-append
(assoc-ref inputs "oath-toolkit") "OATH="
"/bin/oathtool\n")) (assoc-ref inputs "oath-toolkit")
;; courtesy: https://github.com/tadfisher/pass-otp/pull/172 "/bin/oathtool\n"))
(("&counter=[$]counter" all) ;; courtesy: https://github.com/tadfisher/pass-otp/pull/172
(format #f "~s" all)))))) (("&counter=[$]counter" all)
#:test-target "test")) (format #f "~s" all))))))
(inputs #:test-target "test"))
(list oath-toolkit))
(native-inputs (native-inputs
(list password-store expect git gnupg which)) (list password-store expect git gnupg which))
(inputs
(list oath-toolkit))
(home-page "https://github.com/tadfisher/pass-otp") (home-page "https://github.com/tadfisher/pass-otp")
(synopsis "Pass extension for managing one-time-password (OTP) tokens") (synopsis "Pass extension for managing one-time-password (OTP) tokens")
(description (description