summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2023-02-28 06:31:23 +0400
committerAndrew Tropin <andrew@trop.in>2023-02-28 06:35:17 +0400
commitbc3280190b925e1a63984acea00fccb15777a185 (patch)
tree0abf6300009ebe953e58becd9cd3be9f222d5a02 /gnu
parent62e8ba15d755bbba0ac37b0d17103618e5aa2e2b (diff)
downloadguix-bc3280190b925e1a63984acea00fccb15777a185.tar.gz
gnu: emacs-consult: Generate info from README.org.
* gnu/packages/emacs-xyz.scm (emacs-consult)[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 6212d3958f..f7c1ad3fc2 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10599,6 +10599,20 @@ style, or as multiple word prefixes.")
         (base32 "00cgc3bzj37319ds027rpj60wfk0c10cgp5xish2g1cq5ny74q32"))
        (file-name (git-file-name name version))))
     (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 "consult.info"
+                            (string-append #$output "/share/info")))))))
+    (native-inputs (list texinfo))
     (propagated-inputs (list emacs-compat))
     (home-page "https://github.com/minad/consult")
     (synopsis "Consulting completing-read")