Subject: [PATCH] gnu: Add emacs-consult-bibtex.
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Cc: Nicolas Graves <[email-masked]>
Date: Tue, 2 Aug 2022 14:00:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/emacs-xyz.scm (emacs-consult-bibtex): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a2d207574e..df0b77ea71 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9085,6 +9085,29 @@ (define-public emacs-consult
 list of candidates.")
     (license license:gpl3+)))
 
+(define-public emacs-consult-bibtex
+  (let ((commit "2f870d6eefb54a53216d90a82cff0ff97ba54725")
+        (revision "0"))
+    (package
+      (name "emacs-consult-bibtex")
+      (version (git-version "0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/mohkale/consult-bibtex")
+                      (commit commit)))
+                (sha256
+                 (base32
+                  "0jxjvpg3j8zk77sfhyy27fd1zbj2zz7xayavan3hhj4853q92kwq"))))
+      (build-system emacs-build-system)
+      (arguments `(#:emacs ,build-emacs))
+      (inputs (list emacs-org-roam-bibtex emacs-consult emacs-embark))
+      (home-page "https://github.com/mohkale/consult-bibtex")
+      (synopsis "Consulting-read interface for bibtex completion")
+      (description "This package provides a read interface for bibtex
+completion using consult.")
+      (license license:gpl3))))
+
 (define-public emacs-consult-dir
   (package
     (name "emacs-consult-dir")
-- 
2.37.1