From 7865973ef73ca6f634d68b20e18c28a5ea407fbe Mon Sep 17 00:00:00 2001 From: Alexandr Vityazev Date: Mon, 30 Aug 2021 21:42:43 +0000 Subject: [PATCH] emacs-org-roam: Add new phase after unpack. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]: After the unpack phase add a move-source-files phase to include the org-roam extensions to the package. Signed-off-by: Ludovic Courtès --- gnu/packages/emacs-xyz.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 88368d05d6..88040ded11 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -28245,6 +28245,15 @@ (define-public emacs-org-roam (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)) (add-after 'install 'install-image (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")))