unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56908] [PATCH] gnu: packages: Add gopls.
@ 2022-08-03 11:43 ( via Guix-patches via
  2022-08-04 17:35 ` [bug#56908] [PATCH v2] " ( via Guix-patches via
  2022-08-14 12:41 ` [bug#56908] [PATCH v3] gnu: " ( via Guix-patches via
  0 siblings, 2 replies; 5+ messages in thread
From: ( via Guix-patches via @ 2022-08-03 11:43 UTC (permalink / raw)
  To: 56908; +Cc: (

* gnu/packages/golang.scm (gopls): New variable.
---
 gnu/packages/golang.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1ce55875d8..4756bcb249 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Lu Hui <luhux76@gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9891,3 +9892,22 @@ (define-public go-github-com-sourcegraph-jsonrpc2
     (description
      "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
     (license license:expat)))
+
+(define-public gopls
+  (package
+   (inherit go-golang-org-x-tools)
+   (name "gopls")
+   (arguments
+    (list #:unpack-path "golang.org/x/tools"
+          #:import-path "golang.org/x/tools/gopls"
+          #:install-source? #f))
+   (propagated-inputs
+    (modify-inputs (package-propagated-inputs
+                    go-golang-org-x-tools)
+      (prepend go-golang-org-x-sync)))
+   (synopsis "Go language server implementation")
+   (description
+    "This package provides the @acronym{LSP, Language Server Protocol}
+server implementation for the Go programming language. It provides
+on-the-fly code linting, formatting, completion, and introspection for
+Go code in text editors supporting LSP.")))
-- 
2.37.1





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

* [bug#56908] [PATCH v2] gnu: packages: Add gopls.
  2022-08-03 11:43 [bug#56908] [PATCH] gnu: packages: Add gopls ( via Guix-patches via
@ 2022-08-04 17:35 ` ( via Guix-patches via
  2022-08-04 17:37   ` ( via Guix-patches via
  2022-08-14 12:41 ` [bug#56908] [PATCH v3] gnu: " ( via Guix-patches via
  1 sibling, 1 reply; 5+ messages in thread
From: ( via Guix-patches via @ 2022-08-04 17:35 UTC (permalink / raw)
  To: 56908; +Cc: (

* gnu/packages/golang.scm (gopls): New variable.
---
 gnu/packages/golang.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1ce55875d8..68fd8630a2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Lu Hui <luhux76@gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2022 ( <paren@disroot.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9891,3 +9892,19 @@ (define-public go-github-com-sourcegraph-jsonrpc2
     (description
      "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
     (license license:expat)))
+
+(define-public gopls
+  (package
+   (inherit go-golang-org-x-tools)
+   (name "gopls")
+   (arguments
+    (list #:unpack-path "golang.org/x/tools"
+          #:import-path "golang.org/x/tools/gopls"
+          #:install-source? #f))
+   (inputs (list go-golang-org-x-sync))
+   (synopsis "Go language server implementation")
+   (description
+    "This package provides the @acronym{LSP, Language Server Protocol}
+server implementation for the Go programming language. It provides
+on-the-fly code linting, formatting, completion, and introspection for
+Go code in text editors supporting LSP.")))
-- 
2.37.1





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

* [bug#56908] [PATCH v2] gnu: packages: Add gopls.
  2022-08-04 17:35 ` [bug#56908] [PATCH v2] " ( via Guix-patches via
@ 2022-08-04 17:37   ` ( via Guix-patches via
  0 siblings, 0 replies; 5+ messages in thread
From: ( via Guix-patches via @ 2022-08-04 17:37 UTC (permalink / raw)
  To: (, 56908

This improved patch doesn't use propagated-inputs or modify-inputs (since
x-tools doesn't have any inputs anyway).

    -- (




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

* [bug#56908] [PATCH v3] gnu: Add gopls.
  2022-08-03 11:43 [bug#56908] [PATCH] gnu: packages: Add gopls ( via Guix-patches via
  2022-08-04 17:35 ` [bug#56908] [PATCH v2] " ( via Guix-patches via
@ 2022-08-14 12:41 ` ( via Guix-patches via
  2022-08-14 13:52   ` ( via Guix-patches via
  1 sibling, 1 reply; 5+ messages in thread
From: ( via Guix-patches via @ 2022-08-14 12:41 UTC (permalink / raw)
  To: 56908; +Cc: (

* gnu/packages/golang.scm (gopls): New variable.
---
 gnu/packages/golang.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 1ce55875d8..1ade3b81b2 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -2560,6 +2560,22 @@ (define-public go-golang-org-x-tools
       (home-page "https://go.googlesource.com/tools/")
       (license license:bsd-3))))
 
+(define-public gopls
+  (package
+    (inherit go-golang-org-x-tools)
+    (name "gopls")
+    (arguments
+     (list #:unpack-path "golang.org/x/tools"
+           #:import-path "golang.org/x/tools/gopls"
+           #:install-source? #f))
+    (inputs (list go-golang-org-x-sync))
+    (synopsis "Go language server implementation")
+    (description
+     "This package provides the @acronym{LSP, Language Server Protocol}
+server implementation for the Go programming language.  It provides
+on-the-fly code linting, formatting, completion, and introspection for
+Go code in text editors supporting LSP.")))
+
 (define-public go-golang-org-x-crypto
   (let ((commit "2aa609cf4a9d7d1126360de73b55b6002f9e052a")
         (revision "5"))
-- 
2.37.1





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

* [bug#56908] [PATCH v3] gnu: Add gopls.
  2022-08-14 12:41 ` [bug#56908] [PATCH v3] gnu: " ( via Guix-patches via
@ 2022-08-14 13:52   ` ( via Guix-patches via
  0 siblings, 0 replies; 5+ messages in thread
From: ( via Guix-patches via @ 2022-08-14 13:52 UTC (permalink / raw)
  To: (, 56908

Uh, please ignore this patch. I think it may be missing lots of
dependencies. I'll send a v4 with the missing deps when I have
time.

    -- (




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

end of thread, other threads:[~2022-08-14 13:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 11:43 [bug#56908] [PATCH] gnu: packages: Add gopls ( via Guix-patches via
2022-08-04 17:35 ` [bug#56908] [PATCH v2] " ( via Guix-patches via
2022-08-04 17:37   ` ( via Guix-patches via
2022-08-14 12:41 ` [bug#56908] [PATCH v3] gnu: " ( via Guix-patches via
2022-08-14 13:52   ` ( via Guix-patches via

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).