unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50287] [PATCH] emacs-org-roam: Add new phase after unpack.
@ 2021-08-30 21:42 Alexandr Vityazev
  2021-09-07 13:58 ` bug#50287: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandr Vityazev @ 2021-08-30 21:42 UTC (permalink / raw)
  To: 50287

* 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.
---
 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 70c4c30bc2..679636c123 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -28227,6 +28227,15 @@ snippets for Emacs.")
     (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")))
-- 
2.33.0



-- 

Alexandr Vityazev




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#50287: [PATCH] emacs-org-roam: Add new phase after unpack.
  2021-08-30 21:42 [bug#50287] [PATCH] emacs-org-roam: Add new phase after unpack Alexandr Vityazev
@ 2021-09-07 13:58 ` Ludovic Courtès
  2021-09-08 18:32   ` [bug#50287] " Alexandr Vityazev
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-09-07 13:58 UTC (permalink / raw)
  To: Alexandr Vityazev; +Cc: 50287-done

Hi,

Alexandr Vityazev <avityazev@posteo.org> skribis:

> * 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.

Applied, thanks.

However, the newly installed files aren’t getting compiled.  Should we
do something about it?

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#50287] [PATCH] emacs-org-roam: Add new phase after unpack.
  2021-09-07 13:58 ` bug#50287: " Ludovic Courtès
@ 2021-09-08 18:32   ` Alexandr Vityazev
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandr Vityazev @ 2021-09-08 18:32 UTC (permalink / raw)
  To: ludo; +Cc: 50287-done

uld we
 > do something about it?
 I installed this package on 2 different machines and in both cases all
 files were compiled. Perhaps I am missing something, and my knowledge is
 clearly not enough to understand when this can happen, so I have no
 solution.
 -- 
 Alexandr Vityazev




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-08 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 21:42 [bug#50287] [PATCH] emacs-org-roam: Add new phase after unpack Alexandr Vityazev
2021-09-07 13:58 ` bug#50287: " Ludovic Courtès
2021-09-08 18:32   ` [bug#50287] " Alexandr Vityazev

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).