mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
a7b3e9f931
commit
65e33d48d8
1 changed files with 23 additions and 22 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue