all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#69551] [PATCH 0/2] gnu: Add emacs-lsp-booster rust app.
@ 2024-03-04 20:04 ` Suhail Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Suhail via Guix-patches via @ 2024-03-04 19:18 UTC (permalink / raw)
  To: 69551

Hi Guix,

This series adds the emacs-lsp-booster Rust application as well as one
of its missing dependencies (rust-clap-verbosity-flag-2).  I have not
packaged a Rust application in Guix previously, so would appreciate any
comments and feedback.

Cheers

Suhail (2):
  gnu: Add rust-clap-verbosity-flag-2.
  gnu: Add emacs-lsp-booster.

 gnu/packages/crates-io.scm | 28 +++++++++++++++++++++++++++
 gnu/packages/rust-apps.scm | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)


base-commit: f00f56514d90ebba5d9e08ec786c8118e437097c
-- 
2.44.0






^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69551] [PATCH 1/2] gnu: Add rust-clap-verbosity-flag-2.
       [not found] ` <handler.69551.B.170957996528876.ack@debbugs.gnu.org>
@ 2024-03-04 19:24   ` Suhail via Guix-patches via
  2024-03-04 23:58     ` [bug#69558] " Suhail Singh
  2024-03-04 19:50   ` bug#69551: Acknowledgement ([PATCH 0/2] gnu: Add emacs-lsp-booster rust app.) Suhail via Guix-patches via
  2 siblings, 0 replies; 7+ messages in thread
From: Suhail via Guix-patches via @ 2024-03-04 19:24 UTC (permalink / raw)
  To: 69551


* gnu/packages/crates-io.scm (rust-clap-verbosity-flag-2): New variable.

Change-Id: I9fa802d964e71a1618d8d42571ca954c34dbf59e
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index aaf2157661..91fd8b8e92 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2023, 2024 Troy Figiel <troy@troyfigiel.com>
 ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -11700,6 +11701,33 @@ (define-public rust-clap-mangen-0.1
        (("rust-clap" ,rust-clap-3)
         ("rust-snapbox" ,rust-snapbox-0.2))))))
 
+(define-public rust-clap-verbosity-flag-2
+  (package
+    (name "rust-clap-verbosity-flag")
+    (version "2.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "clap-verbosity-flag" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0y54kb14nr2vddl5j5h1s4217hbnxfxh7ln8j7lw5r2qvp0216xv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-clap" ,rust-clap-4)
+                       ("rust-log" ,rust-log-0.4))
+       #:cargo-development-inputs (("rust-clap" ,rust-clap-4)
+                                   ("rust-env-logger" ,rust-env-logger-0.11)
+                                   ("rust-tracing" ,rust-tracing-0.1)
+                                   ("rust-tracing-log" ,rust-tracing-log-0.2)
+                                   ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))
+    (home-page "https://github.com/clap-rs/clap-verbosity-flag")
+    (synopsis "Easily add a `--verbose` flag to CLIs using Clap")
+    (description
+     "This package provides a way to add a `--verbose` flag to CLIs using
+Clap.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-clearscreen-1
   (package
     (name "rust-clearscreen")
-- 
2.44.0






^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#69551] [PATCH 2/2] gnu: Add emacs-lsp-booster.
@ 2024-03-04 23:58     ` Suhail Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Suhail via Guix-patches via @ 2024-03-04 19:25 UTC (permalink / raw)
  To: 69551


* gnu/packages/rust-apps.scm (emacs-lsp-booster): New variable.

Change-Id: If89f9941662ed01ddec578b220f69e6370775103
---
 gnu/packages/rust-apps.scm | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 01e01ecba3..aa28d25248 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -71,6 +72,7 @@ (define-module (gnu packages rust-apps)
   #:use-module (gnu packages crates-windows)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages emacs)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages haskell-xyz)
@@ -468,6 +470,43 @@ (define-public dutree
 @end enumerate\n")
     (license license:gpl3)))
 
+(define-public emacs-lsp-booster
+  (package
+    (name "emacs-lsp-booster")
+    (version "0.2.0")
+    (home-page "https://github.com/blahgeek/emacs-lsp-booster")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xx32ms3mpi1clxf74mx7nanj0iw9qkmhi0a53fx8fkz0jw2fq8f"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs `(("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-clap-verbosity-flag" ,rust-clap-verbosity-flag-2)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ("rust-env-logger" ,rust-env-logger-0.10))
+      #:cargo-development-inputs `(("rust-emacs" ,rust-emacs-0.18)
+                                   ("rust-tempfile" ,rust-tempfile-3))
+      #:install-source? #f))
+    (native-inputs (list emacs))
+    (synopsis "Emacs LSP performance booster")
+    (description
+     "@code{emacs-lsp-booster} improves the performance of @code{lsp-mode} and
+@code{eglot} Emacs packages using a wrapper executable.  See the home-page for
+configuration instructions.")
+    (license license:expat)))
+
 (define-public eza
   (package
     (name "eza")
-- 
2.44.0






^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#69551: Acknowledgement ([PATCH 0/2] gnu: Add emacs-lsp-booster rust app.)
       [not found] ` <handler.69551.B.170957996528876.ack@debbugs.gnu.org>
  2024-03-04 19:24   ` [bug#69551] [PATCH 1/2] gnu: Add rust-clap-verbosity-flag-2 Suhail via Guix-patches via
  2024-03-04 23:58     ` [bug#69558] " Suhail Singh
@ 2024-03-04 19:50   ` Suhail via Guix-patches via
  2 siblings, 0 replies; 7+ messages in thread
From: Suhail via Guix-patches via @ 2024-03-04 19:50 UTC (permalink / raw)
  To: 69551-done

The email-bridge has a bug and email headers got dropped.  Will re-open
after I've resolved that.  Apologies.

-- 
Suhail





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69557] [PATCH 0/2] gnu: Add emacs-lsp-booster rust app.
@ 2024-03-04 20:04 ` Suhail Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Suhail Singh @ 2024-03-04 20:04 UTC (permalink / raw)
  To: 69557; +Cc: Efraim Flashner

Hi Guix,

This series adds the emacs-lsp-booster Rust application as well as one
of its missing dependencies (rust-clap-verbosity-flag-2).  I have not
packaged a Rust application in Guix previously, so would appreciate any
comments and feedback.

Cheers

Suhail (2):
  gnu: Add rust-clap-verbosity-flag-2.
  gnu: Add emacs-lsp-booster.

 gnu/packages/crates-io.scm | 28 +++++++++++++++++++++++++++
 gnu/packages/rust-apps.scm | 39 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)


base-commit: f00f56514d90ebba5d9e08ec786c8118e437097c
-- 
2.44.0





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#69557: Status: [PATCH 0/2] gnu: Add emacs-lsp-booster rust app.
  2024-03-04 20:04 ` [bug#69557] " Suhail Singh
  (?)
  (?)
@ 2024-03-04 23:53 ` Suhail Singh
  -1 siblings, 0 replies; 7+ messages in thread
From: Suhail Singh @ 2024-03-04 23:53 UTC (permalink / raw)
  To: bug#69557

Closing spurious issue.

-- 
Suhail




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#69558] [PATCH 2/2] gnu: Add emacs-lsp-booster.
@ 2024-03-04 23:58     ` Suhail Singh
  0 siblings, 0 replies; 7+ messages in thread
From: Suhail Singh @ 2024-03-04 23:58 UTC (permalink / raw)
  To: 69558; +Cc: Efraim Flashner


* gnu/packages/rust-apps.scm (emacs-lsp-booster): New variable.

Change-Id: If89f9941662ed01ddec578b220f69e6370775103
---
 gnu/packages/rust-apps.scm | 39 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 01e01ecba3..aa28d25248 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -30,6 +30,7 @@
 ;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
 ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
 ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz>
+;;; Copyright © 2024 Suhail Singh <suhail@bayesians.ca>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -71,6 +72,7 @@ (define-module (gnu packages rust-apps)
   #:use-module (gnu packages crates-windows)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages documentation)
+  #:use-module (gnu packages emacs)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages haskell-xyz)
@@ -468,6 +470,43 @@ (define-public dutree
 @end enumerate\n")
     (license license:gpl3)))
 
+(define-public emacs-lsp-booster
+  (package
+    (name "emacs-lsp-booster")
+    (version "0.2.0")
+    (home-page "https://github.com/blahgeek/emacs-lsp-booster")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1xx32ms3mpi1clxf74mx7nanj0iw9qkmhi0a53fx8fkz0jw2fq8f"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs `(("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-clap" ,rust-clap-4)
+                       ("rust-clap-verbosity-flag" ,rust-clap-verbosity-flag-2)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ("rust-env-logger" ,rust-env-logger-0.10))
+      #:cargo-development-inputs `(("rust-emacs" ,rust-emacs-0.18)
+                                   ("rust-tempfile" ,rust-tempfile-3))
+      #:install-source? #f))
+    (native-inputs (list emacs))
+    (synopsis "Emacs LSP performance booster")
+    (description
+     "@code{emacs-lsp-booster} improves the performance of @code{lsp-mode} and
+@code{eglot} Emacs packages using a wrapper executable.  See the home-page for
+configuration instructions.")
+    (license license:expat)))
+
 (define-public eza
   (package
     (name "eza")
-- 
2.44.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-05 13:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-04 19:18 [bug#69551] [PATCH 0/2] gnu: Add emacs-lsp-booster rust app Suhail via Guix-patches via
2024-03-04 20:04 ` [bug#69557] " Suhail Singh
     [not found] ` <handler.69551.B.170957996528876.ack@debbugs.gnu.org>
2024-03-04 19:24   ` [bug#69551] [PATCH 1/2] gnu: Add rust-clap-verbosity-flag-2 Suhail via Guix-patches via
2024-03-04 19:25   ` [bug#69551] [PATCH 2/2] gnu: Add emacs-lsp-booster Suhail via Guix-patches via
2024-03-04 23:58     ` [bug#69558] " Suhail Singh
2024-03-04 19:50   ` bug#69551: Acknowledgement ([PATCH 0/2] gnu: Add emacs-lsp-booster rust app.) Suhail via Guix-patches via
2024-03-04 23:53 ` bug#69557: Status: [PATCH 0/2] gnu: Add emacs-lsp-booster rust app Suhail Singh

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.