Subject: [bug#47984] [PATCH] gnu: emacs-org-roam: Add info page.

From: Alexandr Vityazev <[email-masked]>
Date: Fri, 23 Apr 2021 22:09:38 +0000

[arguments]: Add phase make-info.
[native-inputs]: Add texinfo.
---
 gnu/packages/emacs-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5d1f587688..f8addc5d8e 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -26880,6 +26880,16 @@ snippets for Emacs.")
          (sha256
           (base32 "162qhb6rkpl1n0l8yhnwgagsx56ykaj9lchsny1id5z1257kgw9w"))))
       (build-system emacs-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-before 'install 'make-info
+             (lambda _
+               (with-directory-excursion "doc"
+                 (invoke "makeinfo" "--no-split"
+                         "-o" "org-roam.info" "org-roam.texi")))))))
+      (native-inputs
+       `(("texinfo" ,texinfo)))
       (propagated-inputs
        `(("emacs-dash" ,emacs-dash)
          ("emacs-emacsql-sqlite3" ,emacs-emacsql-sqlite3)
-- 
2.31.1

-- 

Alexandr Vityazev