diff mbox series

[bug#57426] gnu: Add emacs-consult-org-roam.

Message ID 87zgfr5eb2.fsf@ngraves.fr
State Accepted
Headers show
Series [bug#57426] gnu: Add emacs-consult-org-roam. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Nicolas Graves Aug. 26, 2022, 1:23 p.m. UTC
* gnu/packages/emacs-xyz.scm (emacs-consult-org-roam): New variable.
---
 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Comments

Nicolas Goaziou Aug. 27, 2022, 8:18 a.m. UTC | #1
Hello,

Nicolas Graves via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/emacs-xyz.scm (emacs-consult-org-roam): New variable.

Applied with the changes below. Thank you.

> +(define-public emacs-consult-org-roam
> +  (let* ((commit "9b51aed939054c54934a6969290ad78587051cde")

I used latest commit instead.

> +         (revision "0"))
> +    (package
> +      (name "emacs-consult-org-roam")
> +      (version (git-version "0" revision commit))

Base version is "0.1" according to "Version:" keyword.

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://github.com/jgru/consult-org-roam.git")

I removed the ".git" suffix from URL.

> +      (propagated-inputs (list emacs-org-roam emacs-consult))

I sorted inputs alphabetically.

> +      (description
> +       "This is a set of functions to use org-roam with consult.  This
> +packages replaces org-roam's own completing read functions with equivalent
> +versions utilizing consult's internal API.  By doing so, one gains all
> +advantages of consult which enhances Emacs' own completing-read
> +funcionality.")

I removed last sentence, which didn't seem useful in a description.
Also, I used capitalization for project's names (e.g., Consult).

> +      (license license:gpl3))))

License is actually GPL3+.

Regards,
diff mbox series

Patch

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e6fb7572cc..6a9244dde3 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -9232,6 +9232,33 @@  (define-public emacs-consult-notmuch
 and present results either as single emails or full trees.")
     (license license:gpl3+)))
 
+(define-public emacs-consult-org-roam
+  (let* ((commit "9b51aed939054c54934a6969290ad78587051cde")
+         (revision "0"))
+    (package
+      (name "emacs-consult-org-roam")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jgru/consult-org-roam.git")
+               (commit commit)))
+         (sha256
+          (base32
+           "160rix04azd1wc7fls29bhssjwzwmmnnqcfbkvapsyryvn80q219"))))
+      (build-system emacs-build-system)
+      (propagated-inputs (list emacs-org-roam emacs-consult))
+      (home-page "https://github.com/jgru/consult-org-roam")
+      (synopsis "Consult integration for org-roam")
+      (description
+       "This is a set of functions to use org-roam with consult.  This
+packages replaces org-roam's own completing read functions with equivalent
+versions utilizing consult's internal API.  By doing so, one gains all
+advantages of consult which enhances Emacs' own completing-read
+funcionality.")
+      (license license:gpl3))))
+
 (define-public emacs-consult-eglot
   (package
    (name "emacs-consult-eglot")