gnu: pass-tomb: Use G-expressions.

* gnu/packages/password-utils.scm (pass-tomb): Use G-expressions.

Change-Id: Ic0eae41184d0beffe08caa47c3cafdcb58fa7480
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Cayetano Santos 2025-06-24 09:22:50 +02:00 committed by Sharlatan Hellseher
parent 09950f17e7
commit b46e2f8012
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1928,23 +1928,24 @@ encryption algorithm if so desired.")
(base32 "0cwik9v5pspyi0kgq6d2kaqy6gj3dgfn97nbjcbkbrbbc7syyd3v")))) (base32 "0cwik9v5pspyi0kgq6d2kaqy6gj3dgfn97nbjcbkbrbbc7syyd3v"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:make-flags (list
(let ((out (assoc-ref %outputs "out"))) #:make-flags
(list (string-append "PREFIX=" out) #~(list (string-append "PREFIX=" #$output)
(string-append "BASHCOMPDIR=" out "/etc/bash_completion.d"))) (string-append "BASHCOMPDIR=" #$output
#:test-target "tests" "/etc/bash_completion.d"))
;; tests are very dependent on system state (swap partition) and require #:test-target "tests"
;; access to /tmp/zsh which is not in the build container. ;; tests are very dependent on system state (swap partition) and require
#:tests? #f ;; access to /tmp/zsh which is not in the build container.
#:phases #:tests? #f
(modify-phases %standard-phases #:phases
(add-after 'unpack 'set-tomb-path #~(modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'set-tomb-path
(let ((tomb (assoc-ref inputs "tomb"))) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "tomb.bash" (let ((tomb (assoc-ref inputs "tomb")))
((":-tomb") (substitute* "tomb.bash"
(string-append ":-" tomb "/bin/tomb")))))) ((":-tomb")
(delete 'configure)))) (string-append ":-" tomb "/bin/tomb"))))))
(delete 'configure))))
(inputs (inputs
(list tomb)) (list tomb))
(home-page "https://github.com/roddhjav/pass-tomb") (home-page "https://github.com/roddhjav/pass-tomb")