emacs-org-roam: Add new phase after unpack.

* gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]<phases>:
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 <ludo@gnu.org>
This commit is contained in:
Alexandr Vityazev 2021-08-30 21:42:43 +00:00 committed by Ludovic Courtès
parent e8a67f0fc4
commit 7865973ef7
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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")))