summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2023-02-28 06:33:20 +0400
committerAndrew Tropin <andrew@trop.in>2023-02-28 06:35:18 +0400
commiteed41fbcddbbc1f56e6595ba9f471f590ccb96b7 (patch)
treed54bc172faf0b60f6ae34c9b3cc6ea05c71a4452 /gnu
parentbc3280190b925e1a63984acea00fccb15777a185 (diff)
downloadguix-eed41fbcddbbc1f56e6595ba9f471f590ccb96b7.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm14
1 files changed, 14 insertions, 0 deletions
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")