guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: gnu: emacs-marginalia: Generate info from README.org.


From: guix-commits
Subject: 05/07: gnu: emacs-marginalia: Generate info from README.org.
Date: Mon, 27 Feb 2023 21:42:21 -0500 (EST)

abcdw pushed a commit to branch master
in repository guix.

commit eed41fbcddbbc1f56e6595ba9f471f590ccb96b7
Author: Andrew Tropin <andrew@trop.in>
AuthorDate: Tue Feb 28 06:33:20 2023 +0400

    gnu: emacs-marginalia: Generate info from README.org.
    
    * gnu/packages/emacs-xyz.scm (emacs-marginalia)[native-inputs]: Add texinfo.
    [arguments]: Generate info from README.org.
---
 gnu/packages/emacs-xyz.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f7c1ad3fc2..f5a907324c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10839,6 +10839,20 @@ expansion and overwriting the marked region with a new 
snippet completion.")
        (sha256
         (base32 "0zi3q7dd9dgrhbz6ww270i43kkqs0ddk0vzs89mfvwa5pzw32d2q"))))
     (build-system emacs-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'install 'makeinfo
+            (lambda* (#:key outputs #:allow-other-keys)
+              (invoke "emacs"
+                      "--batch"
+                      "--eval=(require 'ox-texinfo)"
+                      "--eval=(find-file \"README.org\")"
+                      "--eval=(org-texinfo-export-to-info)")
+              (install-file "marginalia.info"
+                            (string-append #$output "/share/info")))))))
+    (native-inputs (list texinfo))
     (propagated-inputs
      (list emacs-compat))
     (home-page "https://github.com/minad/marginalia";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]