gnu: emacs-corfu: Add new phase after unpack.

* gnu/packages/emacs-xyz.scm (emacs-corfu)[arguments]<#:phases>: After the
unpack phase add a move-source-files phase.
This commit is contained in:
Vinicius Monego 2022-04-26 23:02:09 -03:00
parent a27804a353
commit 4809f290ab
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -3068,6 +3068,17 @@ (define-public emacs-corfu
(sha256
(base32 "062lxyqh7nfaixmgfgmqfbkainxc8ypdkj6qjq38xigk55s7c5wk"))))
(build-system emacs-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; Move the extensions source files to the top level, which is included in
;; the EMACSLOADPATH.
(add-after 'unpack 'move-source-files
(lambda _
(let ((el-files (find-files "./extensions" ".*\\.el$")))
(for-each (lambda (f)
(rename-file f (basename f)))
el-files)))))))
(home-page "https://github.com/minad/corfu")
(synopsis "Completion overlay region function")
(description "Corfu enhances the default completion in region function