me
/
guix
Archived
1
0
Fork 0

gnu: emacs-bash-completion: Improve package style.

* gnu/packages/emacs-xyz.scm (emacs-bash-completion)[arguments]<#:phases>:
Remove trailing #T.  Use G-expressions.  Use SEARCH-INPUT-FILE.
master
Nicolas Goaziou 2022-02-06 23:05:43 +01:00
parent f424c3123d
commit 661b5acc72
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 29 additions and 30 deletions

View File

@ -15958,18 +15958,17 @@ Slack client.")
(inputs (list bash)) (inputs (list bash))
(build-system emacs-build-system) (build-system emacs-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'make-git-checkout-writable (add-after 'unpack 'make-git-checkout-writable
(λ _ (λ _
(for-each make-file-writable (find-files ".")) (for-each make-file-writable (find-files "."))))
#t))
(add-before 'install 'configure (add-before 'install 'configure
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((bash (assoc-ref inputs "bash")))
(emacs-substitute-variables "bash-completion.el" (emacs-substitute-variables "bash-completion.el"
("bash-completion-prog" (string-append bash "/bin/bash")))) ("bash-completion-prog"
#t))))) (search-input-file inputs "/bin/bash"))))))))
(home-page "https://github.com/szermatt/emacs-bash-completion") (home-page "https://github.com/szermatt/emacs-bash-completion")
(synopsis "Bash completion for the shell buffer") (synopsis "Bash completion for the shell buffer")
(description (description