[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50156] [PATCH] gnu: emacs-vertico: Add new phase after unpack.
From: |
Alexandr Vityazev |
Subject: |
[bug#50156] [PATCH] gnu: emacs-vertico: Add new phase after unpack. |
Date: |
Sat, 21 Aug 2021 21:58:41 +0000 |
* gnu/packages/emacs-xyz.scm (emacs-vertico)[arguments]<phases>:
After the unpack phase add a move-source-files phase.
---
gnu/packages/emacs-xyz.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index bea6288976..27029b2977 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -29166,6 +29166,18 @@ and preferred services can easily be configured.")
(sha256
(base32 "0rddk76ih44b574lsr6d6r9wa2l7c9zlb9kcyw5xvly17ciiq16h"))))
(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))
+ #t)))))
(native-inputs
`(("texinfo" ,texinfo)))
(home-page "https://github.com/minad/vertico")
--
2.33.0
--
Alexandr Vityazev
- [bug#50156] [PATCH] gnu: emacs-vertico: Add new phase after unpack.,
Alexandr Vityazev <=